diff --git a/src/hci.c b/src/hci.c index 65ac40bd4..8778ff1dc 100644 --- a/src/hci.c +++ b/src/hci.c @@ -694,13 +694,13 @@ bool hci_is_packet_buffer_reserved(void){ } // reserves outgoing packet buffer. @returns 1 if successful -int hci_reserve_packet_buffer(void){ +bool hci_reserve_packet_buffer(void){ if (hci_stack->hci_packet_buffer_reserved) { log_error("hci_reserve_packet_buffer called but buffer already reserved"); - return 0; + return false; } hci_stack->hci_packet_buffer_reserved = true; - return 1; + return true; } void hci_release_packet_buffer(void){ diff --git a/src/hci.h b/src/hci.h index 47fd7676a..94bffcdbd 100644 --- a/src/hci.h +++ b/src/hci.h @@ -1223,9 +1223,9 @@ int hci_send_sco_packet_buffer(int size); /** * Reserves outgoing packet buffer. - * @return 1 on success + * @return true on success */ -int hci_reserve_packet_buffer(void); +bool hci_reserve_packet_buffer(void); /** * Get pointer for outgoing packet buffer