mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-04-02 16:20:31 +00:00
example: use #define for constants instead of const uint8_t to fix build
This commit is contained in:
parent
acadfdd023
commit
edf70fbf9f
@ -89,14 +89,14 @@ static void beat(void);
|
|||||||
|
|
||||||
// Flags general discoverable, BR/EDR supported (== not supported flag not set) when ENABLE_GATT_OVER_CLASSIC is enabled
|
// Flags general discoverable, BR/EDR supported (== not supported flag not set) when ENABLE_GATT_OVER_CLASSIC is enabled
|
||||||
#ifdef ENABLE_GATT_OVER_CLASSIC
|
#ifdef ENABLE_GATT_OVER_CLASSIC
|
||||||
static const uint8_t ad_flags = 0x02;
|
#define APP_AD_FLAGS 0x02
|
||||||
#else
|
#else
|
||||||
static const uint8_t ad_flags = 0x06;
|
#define APP_AD_FLAGS 0x06
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
const uint8_t adv_data[] = {
|
const uint8_t adv_data[] = {
|
||||||
// Flags general discoverable
|
// Flags general discoverable
|
||||||
0x02, BLUETOOTH_DATA_TYPE_FLAGS, ad_flags,
|
0x02, BLUETOOTH_DATA_TYPE_FLAGS, APP_AD_FLAGS,
|
||||||
// Name
|
// Name
|
||||||
0x0b, BLUETOOTH_DATA_TYPE_COMPLETE_LOCAL_NAME, 'L', 'E', ' ', 'C', 'o', 'u', 'n', 't', 'e', 'r',
|
0x0b, BLUETOOTH_DATA_TYPE_COMPLETE_LOCAL_NAME, 'L', 'E', ' ', 'C', 'o', 'u', 'n', 't', 'e', 'r',
|
||||||
// Incomplete List of 16-bit Service Class UUIDs -- FF10 - only valid for testing!
|
// Incomplete List of 16-bit Service Class UUIDs -- FF10 - only valid for testing!
|
||||||
|
@ -79,14 +79,14 @@ static void streamer(void);
|
|||||||
|
|
||||||
// Flags general discoverable, BR/EDR supported (== not supported flag not set) when ENABLE_GATT_OVER_CLASSIC is enabled
|
// Flags general discoverable, BR/EDR supported (== not supported flag not set) when ENABLE_GATT_OVER_CLASSIC is enabled
|
||||||
#ifdef ENABLE_GATT_OVER_CLASSIC
|
#ifdef ENABLE_GATT_OVER_CLASSIC
|
||||||
static const uint8_t ad_flags = 0x02;
|
#define APP_AD_FLAGS 0x02
|
||||||
#else
|
#else
|
||||||
static const uint8_t ad_flags = 0x06;
|
#define APP_AD_FLAGS 0x06
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
const uint8_t adv_data[] = {
|
const uint8_t adv_data[] = {
|
||||||
// Flags general discoverable
|
// Flags general discoverable
|
||||||
0x02, BLUETOOTH_DATA_TYPE_FLAGS, ad_flags,
|
0x02, BLUETOOTH_DATA_TYPE_FLAGS, APP_AD_FLAGS,
|
||||||
// Name
|
// Name
|
||||||
0x0c, BLUETOOTH_DATA_TYPE_COMPLETE_LOCAL_NAME, 'L', 'E', ' ', 'S', 't', 'r', 'e', 'a', 'm', 'e', 'r',
|
0x0c, BLUETOOTH_DATA_TYPE_COMPLETE_LOCAL_NAME, 'L', 'E', ' ', 'S', 't', 'r', 'e', 'a', 'm', 'e', 'r',
|
||||||
// Incomplete List of 16-bit Service Class UUIDs -- FF10 - only valid for testing!
|
// Incomplete List of 16-bit Service Class UUIDs -- FF10 - only valid for testing!
|
||||||
|
Loading…
x
Reference in New Issue
Block a user