mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-01-30 15:32:41 +00:00
hci: use bool for hci_reserve_packet_buffer
This commit is contained in:
parent
02c7fc01f5
commit
cafc12e80b
@ -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){
|
||||
|
Loading…
x
Reference in New Issue
Block a user