mirror of
https://github.com/bluekitchen/btstack.git
synced 2024-12-27 21:21:21 +00:00
btstack_uart_block_embedded: use boolean in conditions
This commit is contained in:
parent
c7bead4678
commit
16e19888bb
@ -97,7 +97,7 @@ static void btstack_uart_embedded_process(btstack_data_source_t *ds, btstack_dat
|
|||||||
case DATA_SOURCE_CALLBACK_POLL:
|
case DATA_SOURCE_CALLBACK_POLL:
|
||||||
if (send_complete){
|
if (send_complete){
|
||||||
send_complete = false;
|
send_complete = false;
|
||||||
if (block_sent !+ NULL){
|
if (block_sent != NULL){
|
||||||
block_sent();
|
block_sent();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -109,7 +109,7 @@ static void btstack_uart_embedded_process(btstack_data_source_t *ds, btstack_dat
|
|||||||
}
|
}
|
||||||
if (wakeup_event){
|
if (wakeup_event){
|
||||||
wakeup_event = false;
|
wakeup_event = false;
|
||||||
if (wakeup_handler !=){
|
if (wakeup_handler != NULL){
|
||||||
wakeup_handler();
|
wakeup_handler();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user