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
c6f7abbe94
commit
eb52b1da96
@ -21,31 +21,31 @@
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
#define CONFIG_BLE_MESH_GENERIC_CLIENT (CONFIG_BLE_MESH_GENERIC_ONOFF_CLI | \
|
||||
CONFIG_BLE_MESH_GENERIC_LEVEL_CLI | \
|
||||
CONFIG_BLE_MESH_GENERIC_DEF_TRANS_TIME_CLI | \
|
||||
CONFIG_BLE_MESH_GENERIC_POWER_ONOFF_CLI | \
|
||||
CONFIG_BLE_MESH_GENERIC_POWER_LEVEL_CLI | \
|
||||
CONFIG_BLE_MESH_GENERIC_BATTERY_CLI | \
|
||||
CONFIG_BLE_MESH_GENERIC_LOCATION_CLI | \
|
||||
#define CONFIG_BLE_MESH_GENERIC_CLIENT (CONFIG_BLE_MESH_GENERIC_ONOFF_CLI || \
|
||||
CONFIG_BLE_MESH_GENERIC_LEVEL_CLI || \
|
||||
CONFIG_BLE_MESH_GENERIC_DEF_TRANS_TIME_CLI || \
|
||||
CONFIG_BLE_MESH_GENERIC_POWER_ONOFF_CLI || \
|
||||
CONFIG_BLE_MESH_GENERIC_POWER_LEVEL_CLI || \
|
||||
CONFIG_BLE_MESH_GENERIC_BATTERY_CLI || \
|
||||
CONFIG_BLE_MESH_GENERIC_LOCATION_CLI || \
|
||||
CONFIG_BLE_MESH_GENERIC_PROPERTY_CLI)
|
||||
|
||||
#define CONFIG_BLE_MESH_TIME_SCENE_CLIENT (CONFIG_BLE_MESH_TIME_CLI | \
|
||||
CONFIG_BLE_MESH_SCENE_CLI | \
|
||||
#define CONFIG_BLE_MESH_TIME_SCENE_CLIENT (CONFIG_BLE_MESH_TIME_CLI || \
|
||||
CONFIG_BLE_MESH_SCENE_CLI || \
|
||||
CONFIG_BLE_MESH_SCHEDULER_CLI)
|
||||
|
||||
#define CONFIG_BLE_MESH_LIGHTING_CLIENT (CONFIG_BLE_MESH_LIGHT_LIGHTNESS_CLI | \
|
||||
CONFIG_BLE_MESH_LIGHT_CTL_CLI | \
|
||||
CONFIG_BLE_MESH_LIGHT_HSL_CLI | \
|
||||
CONFIG_BLE_MESH_LIGHT_XYL_CLI | \
|
||||
#define CONFIG_BLE_MESH_LIGHTING_CLIENT (CONFIG_BLE_MESH_LIGHT_LIGHTNESS_CLI || \
|
||||
CONFIG_BLE_MESH_LIGHT_CTL_CLI || \
|
||||
CONFIG_BLE_MESH_LIGHT_HSL_CLI || \
|
||||
CONFIG_BLE_MESH_LIGHT_XYL_CLI || \
|
||||
CONFIG_BLE_MESH_LIGHT_LC_CLI)
|
||||
|
||||
#define CONFIG_BLE_MESH_SERVER_MODEL (CONFIG_BLE_MESH_GENERIC_SERVER | \
|
||||
CONFIG_BLE_MESH_SENSOR_SERVER | \
|
||||
CONFIG_BLE_MESH_TIME_SCENE_SERVER | \
|
||||
#define CONFIG_BLE_MESH_SERVER_MODEL (CONFIG_BLE_MESH_GENERIC_SERVER || \
|
||||
CONFIG_BLE_MESH_SENSOR_SERVER || \
|
||||
CONFIG_BLE_MESH_TIME_SCENE_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)
|
||||
|
||||
#ifdef __cplusplus
|
||||
|
@ -15,8 +15,8 @@
|
||||
#include "model_opcode.h"
|
||||
#include "state_transition.h"
|
||||
|
||||
#if (CONFIG_BLE_MESH_GENERIC_SERVER | \
|
||||
CONFIG_BLE_MESH_TIME_SCENE_SERVER | \
|
||||
#if (CONFIG_BLE_MESH_GENERIC_SERVER || \
|
||||
CONFIG_BLE_MESH_TIME_SCENE_SERVER || \
|
||||
CONFIG_BLE_MESH_LIGHTING_SERVER)
|
||||
|
||||
/* 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) */
|
||||
|
||||
#endif /* (CONFIG_BLE_MESH_GENERIC_SERVER | \
|
||||
CONFIG_BLE_MESH_TIME_SCENE_SERVER | \
|
||||
#endif /* (CONFIG_BLE_MESH_GENERIC_SERVER || \
|
||||
CONFIG_BLE_MESH_TIME_SCENE_SERVER || \
|
||||
CONFIG_BLE_MESH_LIGHTING_SERVER) */
|
||||
|
Loading…
Reference in New Issue
Block a user