example/gap_le_advertisements: define adv type strings as const (avoids warnings)

This commit is contained in:
Matthias Ringwald 2018-04-20 12:29:49 +02:00
parent 0074810566
commit e3c4fe2ff2

View File

@ -85,7 +85,7 @@ static void gap_le_advertisements_setup(void){
*/
/* LISTING_START(GAPLEAdvDataTypesAndFlags): Advertising data types and flags */
static char * ad_types[] = {
static const char * ad_types[] = {
"",
"Flags",
"Incomplete List of 16-bit Service Class UUIDs",
@ -115,7 +115,7 @@ static char * ad_types[] = {
"Advertising Interval"
};
static char * flags[] = {
static const char * flags[] = {
"LE Limited Discoverable Mode",
"LE General Discoverable Mode",
"BR/EDR Not Supported",