mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-01-27 15:35:30 +00:00
gatt_battery_query: fix event getter
This commit is contained in:
parent
3825f59112
commit
7b782c70a1
@ -301,7 +301,7 @@ static void gatt_client_event_handler(uint8_t packet_type, uint16_t channel, uin
|
||||
printf("Battery level read failed, ATT Error 0x%02x\n", att_status);
|
||||
} else {
|
||||
printf("Service index: %d, Battery level: %d\n",
|
||||
gattservice_subevent_battery_service_level_get_sevice_index(packet),
|
||||
gattservice_subevent_battery_service_level_get_service_index(packet),
|
||||
gattservice_subevent_battery_service_level_get_level(packet));
|
||||
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user