mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
ble_mesh: stack: Fix using wrong | for OR between macros
This commit is contained in:
parent
46c4842c0e
commit
bd5552faec
@ -21,31 +21,31 @@
|
|||||||
extern "C" {
|
extern "C" {
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#define CONFIG_BLE_MESH_GENERIC_CLIENT (CONFIG_BLE_MESH_GENERIC_ONOFF_CLI | \
|
#define CONFIG_BLE_MESH_GENERIC_CLIENT (CONFIG_BLE_MESH_GENERIC_ONOFF_CLI || \
|
||||||
CONFIG_BLE_MESH_GENERIC_LEVEL_CLI | \
|
CONFIG_BLE_MESH_GENERIC_LEVEL_CLI || \
|
||||||
CONFIG_BLE_MESH_GENERIC_DEF_TRANS_TIME_CLI | \
|
CONFIG_BLE_MESH_GENERIC_DEF_TRANS_TIME_CLI || \
|
||||||
CONFIG_BLE_MESH_GENERIC_POWER_ONOFF_CLI | \
|
CONFIG_BLE_MESH_GENERIC_POWER_ONOFF_CLI || \
|
||||||
CONFIG_BLE_MESH_GENERIC_POWER_LEVEL_CLI | \
|
CONFIG_BLE_MESH_GENERIC_POWER_LEVEL_CLI || \
|
||||||
CONFIG_BLE_MESH_GENERIC_BATTERY_CLI | \
|
CONFIG_BLE_MESH_GENERIC_BATTERY_CLI || \
|
||||||
CONFIG_BLE_MESH_GENERIC_LOCATION_CLI | \
|
CONFIG_BLE_MESH_GENERIC_LOCATION_CLI || \
|
||||||
CONFIG_BLE_MESH_GENERIC_PROPERTY_CLI)
|
CONFIG_BLE_MESH_GENERIC_PROPERTY_CLI)
|
||||||
|
|
||||||
#define CONFIG_BLE_MESH_TIME_SCENE_CLIENT (CONFIG_BLE_MESH_TIME_CLI | \
|
#define CONFIG_BLE_MESH_TIME_SCENE_CLIENT (CONFIG_BLE_MESH_TIME_CLI || \
|
||||||
CONFIG_BLE_MESH_SCENE_CLI | \
|
CONFIG_BLE_MESH_SCENE_CLI || \
|
||||||
CONFIG_BLE_MESH_SCHEDULER_CLI)
|
CONFIG_BLE_MESH_SCHEDULER_CLI)
|
||||||
|
|
||||||
#define CONFIG_BLE_MESH_LIGHTING_CLIENT (CONFIG_BLE_MESH_LIGHT_LIGHTNESS_CLI | \
|
#define CONFIG_BLE_MESH_LIGHTING_CLIENT (CONFIG_BLE_MESH_LIGHT_LIGHTNESS_CLI || \
|
||||||
CONFIG_BLE_MESH_LIGHT_CTL_CLI | \
|
CONFIG_BLE_MESH_LIGHT_CTL_CLI || \
|
||||||
CONFIG_BLE_MESH_LIGHT_HSL_CLI | \
|
CONFIG_BLE_MESH_LIGHT_HSL_CLI || \
|
||||||
CONFIG_BLE_MESH_LIGHT_XYL_CLI | \
|
CONFIG_BLE_MESH_LIGHT_XYL_CLI || \
|
||||||
CONFIG_BLE_MESH_LIGHT_LC_CLI)
|
CONFIG_BLE_MESH_LIGHT_LC_CLI)
|
||||||
|
|
||||||
#define CONFIG_BLE_MESH_SERVER_MODEL (CONFIG_BLE_MESH_GENERIC_SERVER | \
|
#define CONFIG_BLE_MESH_SERVER_MODEL (CONFIG_BLE_MESH_GENERIC_SERVER || \
|
||||||
CONFIG_BLE_MESH_SENSOR_SERVER | \
|
CONFIG_BLE_MESH_SENSOR_SERVER || \
|
||||||
CONFIG_BLE_MESH_TIME_SCENE_SERVER | \
|
CONFIG_BLE_MESH_TIME_SCENE_SERVER || \
|
||||||
CONFIG_BLE_MESH_LIGHTING_SERVER)
|
CONFIG_BLE_MESH_LIGHTING_SERVER)
|
||||||
|
|
||||||
#define CONFIG_BLE_MESH_BLE_COEX_SUPPORT (CONFIG_BLE_MESH_SUPPORT_BLE_ADV | \
|
#define CONFIG_BLE_MESH_BLE_COEX_SUPPORT (CONFIG_BLE_MESH_SUPPORT_BLE_ADV || \
|
||||||
CONFIG_BLE_MESH_SUPPORT_BLE_SCAN)
|
CONFIG_BLE_MESH_SUPPORT_BLE_SCAN)
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
|
@ -15,8 +15,8 @@
|
|||||||
#include "model_opcode.h"
|
#include "model_opcode.h"
|
||||||
#include "state_transition.h"
|
#include "state_transition.h"
|
||||||
|
|
||||||
#if (CONFIG_BLE_MESH_GENERIC_SERVER | \
|
#if (CONFIG_BLE_MESH_GENERIC_SERVER || \
|
||||||
CONFIG_BLE_MESH_TIME_SCENE_SERVER | \
|
CONFIG_BLE_MESH_TIME_SCENE_SERVER || \
|
||||||
CONFIG_BLE_MESH_LIGHTING_SERVER)
|
CONFIG_BLE_MESH_LIGHTING_SERVER)
|
||||||
|
|
||||||
/* Function to calculate Remaining Time (Start) */
|
/* Function to calculate Remaining Time (Start) */
|
||||||
@ -1037,6 +1037,6 @@ void bt_mesh_server_start_transition(struct bt_mesh_state_transition *transition
|
|||||||
|
|
||||||
/* Messages handlers (End) */
|
/* Messages handlers (End) */
|
||||||
|
|
||||||
#endif /* (CONFIG_BLE_MESH_GENERIC_SERVER | \
|
#endif /* (CONFIG_BLE_MESH_GENERIC_SERVER || \
|
||||||
CONFIG_BLE_MESH_TIME_SCENE_SERVER | \
|
CONFIG_BLE_MESH_TIME_SCENE_SERVER || \
|
||||||
CONFIG_BLE_MESH_LIGHTING_SERVER) */
|
CONFIG_BLE_MESH_LIGHTING_SERVER) */
|
||||||
|
Loading…
Reference in New Issue
Block a user