mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-04-10 06:44:32 +00:00
hci: add parentheses around macro invocation of HCI_EVENT_IS_COMMAND_COMPLETE
This commit is contained in:
parent
af7c3ae6cd
commit
905ee0fd06
@ -2129,7 +2129,7 @@ static void handle_event_for_current_stack_state(const uint8_t * packet, uint16_
|
|||||||
// help with BT sleep
|
// help with BT sleep
|
||||||
if ((hci_stack->state == HCI_STATE_FALLING_ASLEEP)
|
if ((hci_stack->state == HCI_STATE_FALLING_ASLEEP)
|
||||||
&& (hci_stack->substate == HCI_FALLING_ASLEEP_W4_WRITE_SCAN_ENABLE)
|
&& (hci_stack->substate == HCI_FALLING_ASLEEP_W4_WRITE_SCAN_ENABLE)
|
||||||
&& HCI_EVENT_IS_COMMAND_COMPLETE(packet, hci_write_scan_enable)) {
|
&& (HCI_EVENT_IS_COMMAND_COMPLETE(packet, hci_write_scan_enable))) {
|
||||||
hci_initializing_next_state();
|
hci_initializing_next_state();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user