btstack_uart_block_embedded: use boolean in conditions

This commit is contained in:
Matthias Ringwald 2023-12-05 12:00:48 +01:00
parent ac1fb478fc
commit 79dbf8a432

View File

@ -97,19 +97,19 @@ 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){ if (block_sent !+ NULL){
block_sent(); block_sent();
} }
} }
if (receive_complete){ if (receive_complete){
receive_complete = false; receive_complete = false;
if (block_received){ if (block_received != NULL){
block_received(); block_received();
} }
} }
if (wakeup_event){ if (wakeup_event){
wakeup_event = false; wakeup_event = false;
if (wakeup_handler){ if (wakeup_handler !=){
wakeup_handler(); wakeup_handler();
} }
} }