mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-03-29 22:20:37 +00:00
avdtp: use bool for request_can_send_now
This commit is contained in:
parent
093c3dfd65
commit
d067681928
@ -471,11 +471,10 @@ static void avdtp_handle_can_send_now(uint16_t l2cap_cid) {
|
||||
if (stream_endpoint != NULL) {
|
||||
log_debug("call avdtp_initiator_stream_config_subsm_handle_can_send_now_stream_endpoint %p", stream_endpoint);
|
||||
if (stream_endpoint->request_can_send_now) {
|
||||
stream_endpoint->request_can_send_now = 0;
|
||||
stream_endpoint->request_can_send_now = false;
|
||||
avdtp_initiator_stream_config_subsm_handle_can_send_now_stream_endpoint(stream_endpoint);
|
||||
}
|
||||
bool more_to_send = stream_endpoint->request_can_send_now != 0;
|
||||
if (more_to_send){
|
||||
if (stream_endpoint->request_can_send_now){
|
||||
l2cap_request_can_send_now_event(l2cap_cid);
|
||||
}
|
||||
}
|
||||
|
@ -592,7 +592,7 @@ typedef struct avdtp_stream_endpoint {
|
||||
uint8_t media_connect;
|
||||
uint8_t start_stream;
|
||||
uint8_t close_stream;
|
||||
uint8_t request_can_send_now;
|
||||
bool request_can_send_now;
|
||||
uint8_t abort_stream;
|
||||
uint8_t suspend_stream;
|
||||
uint16_t sequence_number;
|
||||
|
@ -134,7 +134,7 @@ void avdtp_reset_stream_endpoint(avdtp_stream_endpoint_t * stream_endpoint){
|
||||
stream_endpoint->media_connect = 0;
|
||||
stream_endpoint->start_stream = 0;
|
||||
stream_endpoint->close_stream = 0;
|
||||
stream_endpoint->request_can_send_now = 0;
|
||||
stream_endpoint->request_can_send_now = false;
|
||||
stream_endpoint->abort_stream = 0;
|
||||
stream_endpoint->suspend_stream = 0;
|
||||
stream_endpoint->sequence_number = 0;
|
||||
|
Loading…
x
Reference in New Issue
Block a user