mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-03-26 02:37:41 +00:00
example/hsp_X_demo: fix error report for HSP_SUBEVENT_RFCOMM_CONNECTION_COMPLETE
This commit is contained in:
parent
bdb44bd96a
commit
d9ec3f99b2
@ -243,7 +243,7 @@ static void packet_handler(uint8_t packet_type, uint16_t channel, uint8_t * even
|
||||
switch (event[2]) {
|
||||
case HSP_SUBEVENT_RFCOMM_CONNECTION_COMPLETE:
|
||||
if (hsp_subevent_rfcomm_connection_complete_get_status(event)){
|
||||
printf("RFCOMM connection establishement failed with status %u\n", hsp_subevent_audio_connection_complete_get_handle(event));
|
||||
printf("RFCOMM connection establishement failed with status %u\n", hsp_subevent_rfcomm_connection_complete_get_status(event));
|
||||
} else {
|
||||
printf("RFCOMM connection established.\n");
|
||||
}
|
||||
|
@ -240,7 +240,7 @@ static void packet_handler(uint8_t packet_type, uint16_t channel, uint8_t * even
|
||||
switch (event[2]) {
|
||||
case HSP_SUBEVENT_RFCOMM_CONNECTION_COMPLETE:
|
||||
if (hsp_subevent_rfcomm_connection_complete_get_status(event)){
|
||||
printf("RFCOMM connection establishement failed with status %u\n", hsp_subevent_audio_connection_complete_get_handle(event));
|
||||
printf("RFCOMM connection establishement failed with status %u\n", hsp_subevent_rfcomm_connection_complete_get_status(event));
|
||||
} else {
|
||||
printf("RFCOMM connection established.\n");
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user