From 1bb145c93b894499ce7fac5921d7e6cb65bf2ac4 Mon Sep 17 00:00:00 2001 From: Matthias Ringwald Date: Fri, 1 Apr 2016 16:10:26 +0200 Subject: [PATCH] daemon: fix compile --- platform/daemon/example/rfcomm_echo.c | 2 +- platform/daemon/example/rfcomm_test.c | 2 +- platform/daemon/src/daemon.c | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/platform/daemon/example/rfcomm_echo.c b/platform/daemon/example/rfcomm_echo.c index 49fa24352..e72d8adb6 100644 --- a/platform/daemon/example/rfcomm_echo.c +++ b/platform/daemon/example/rfcomm_echo.c @@ -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 diff --git a/platform/daemon/example/rfcomm_test.c b/platform/daemon/example/rfcomm_test.c index 3c32350b7..e76a5761a 100644 --- a/platform/daemon/example/rfcomm_test.c +++ b/platform/daemon/example/rfcomm_test.c @@ -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 diff --git a/platform/daemon/src/daemon.c b/platform/daemon/src/daemon.c index b9f97acda..75911376d 100644 --- a/platform/daemon/src/daemon.c +++ b/platform/daemon/src/daemon.c @@ -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;