mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-01-03 23:47:08 +00:00
daemon: fix compile
This commit is contained in:
parent
243d13318c
commit
1bb145c93b
@ -93,7 +93,7 @@ void packet_handler(uint8_t packet_type, uint16_t channel, uint8_t *packet, uint
|
||||
}
|
||||
break;
|
||||
|
||||
case RFCOMM_EVENT_PERSISTENT_CHANNEL:
|
||||
case DAEMON_EVENT_RFCOMM_PERSISTENT_CHANNEL:
|
||||
rfcomm_channel_nr = packet[3];
|
||||
printf("RFCOMM channel %u was assigned by BTdaemon\n", rfcomm_channel_nr);
|
||||
bt_send_cmd(&rfcomm_register_service_cmd, rfcomm_channel_nr, 0xffff); // reserved channel, mtu limited by l2cap
|
||||
|
@ -108,7 +108,7 @@ void packet_handler(uint8_t packet_type, uint16_t channel, uint8_t *packet, uint
|
||||
}
|
||||
break;
|
||||
|
||||
case RFCOMM_EVENT_PERSISTENT_CHANNEL:
|
||||
case DAEMON_EVENT_RFCOMM_PERSISTENT_CHANNEL:
|
||||
rfcomm_channel_nr = packet[3];
|
||||
printf("RFCOMM channel %u was assigned by BTdaemon\n", rfcomm_channel_nr);
|
||||
bt_send_cmd(&rfcomm_register_service_cmd, rfcomm_channel_nr, 0xffff); // reserved channel, mtu limited by l2cap
|
||||
|
@ -1076,9 +1076,9 @@ static int btstack_command_handler(connection_t *connection, uint8_t *packet, ui
|
||||
// enforce \0
|
||||
packet[3+248] = 0;
|
||||
rfcomm_channel = rfcomm_service_db_channel_for_service((char*)&packet[3]);
|
||||
log_info("RFCOMM_EVENT_PERSISTENT_CHANNEL %u", rfcomm_channel);
|
||||
log_info("DAEMON_EVENT_RFCOMM_PERSISTENT_CHANNEL %u", rfcomm_channel);
|
||||
uint8_t event[4];
|
||||
event[0] = RFCOMM_EVENT_PERSISTENT_CHANNEL;
|
||||
event[0] = DAEMON_EVENT_RFCOMM_PERSISTENT_CHANNEL;
|
||||
event[1] = sizeof(event) - 2;
|
||||
event[2] = 0;
|
||||
event[3] = rfcomm_channel;
|
||||
|
Loading…
Reference in New Issue
Block a user