mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-01-01 00:28:18 +00:00
daemon: fix forwarding of rfcomm packets to client
This commit is contained in:
parent
12610ed383
commit
c3d3f9ed34
@ -1351,7 +1351,7 @@ static int daemon_client_handler(connection_t *connection, uint16_t packet_type,
|
||||
err = l2cap_send(channel, data, length);
|
||||
break;
|
||||
case RFCOMM_DATA_PACKET:
|
||||
// process l2cap packet...
|
||||
// process rfcomm packet...
|
||||
err = rfcomm_send(channel, data, length);
|
||||
break;
|
||||
case DAEMON_EVENT_PACKET:
|
||||
@ -1648,7 +1648,7 @@ static void daemon_packet_handler(void * connection, uint8_t packet_type, uint16
|
||||
if (!connection) return;
|
||||
break;
|
||||
case RFCOMM_DATA_PACKET:
|
||||
connection = connection_for_l2cap_cid(channel);
|
||||
connection = connection_for_rfcomm_cid(channel);
|
||||
if (!connection) return;
|
||||
break;
|
||||
default:
|
||||
|
Loading…
Reference in New Issue
Block a user