mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-04-25 09:02:30 +00:00
example/le_counter: only beat when connected
This commit is contained in:
parent
88a48dd8bf
commit
d735b00bf5
@ -164,7 +164,6 @@ static void packet_handler (uint8_t packet_type, uint16_t channel, uint8_t *pack
|
|||||||
case BTSTACK_EVENT_STATE:
|
case BTSTACK_EVENT_STATE:
|
||||||
if (btstack_event_state_get_state(packet) == HCI_STATE_WORKING){
|
if (btstack_event_state_get_state(packet) == HCI_STATE_WORKING){
|
||||||
printf("LE Counter Demo ready.\n");
|
printf("LE Counter Demo ready.\n");
|
||||||
beat();
|
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case HCI_EVENT_DISCONNECTION_COMPLETE:
|
case HCI_EVENT_DISCONNECTION_COMPLETE:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user