mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-04-16 08:42:28 +00:00
example/gap_le_advertisements: define adv type strings as const (avoids warnings)
This commit is contained in:
parent
0074810566
commit
e3c4fe2ff2
@ -85,7 +85,7 @@ static void gap_le_advertisements_setup(void){
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
/* LISTING_START(GAPLEAdvDataTypesAndFlags): Advertising data types and flags */
|
/* LISTING_START(GAPLEAdvDataTypesAndFlags): Advertising data types and flags */
|
||||||
static char * ad_types[] = {
|
static const char * ad_types[] = {
|
||||||
"",
|
"",
|
||||||
"Flags",
|
"Flags",
|
||||||
"Incomplete List of 16-bit Service Class UUIDs",
|
"Incomplete List of 16-bit Service Class UUIDs",
|
||||||
@ -115,7 +115,7 @@ static char * ad_types[] = {
|
|||||||
"Advertising Interval"
|
"Advertising Interval"
|
||||||
};
|
};
|
||||||
|
|
||||||
static char * flags[] = {
|
static const char * flags[] = {
|
||||||
"LE Limited Discoverable Mode",
|
"LE Limited Discoverable Mode",
|
||||||
"LE General Discoverable Mode",
|
"LE General Discoverable Mode",
|
||||||
"BR/EDR Not Supported",
|
"BR/EDR Not Supported",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user