X-Git-Url: http://git.linex4red.de/pub/USBasp.git/blobdiff_plain/071e02c6b6b4837fa9cf0b6d4c749994e02638d7..480da5aab642eb7e5b87e604a55a91bf872b3607:/Demos/Host/Incomplete/BluetoothHost/BluetoothHost.c diff --git a/Demos/Host/Incomplete/BluetoothHost/BluetoothHost.c b/Demos/Host/Incomplete/BluetoothHost/BluetoothHost.c index 585820d34..102867933 100644 --- a/Demos/Host/Incomplete/BluetoothHost/BluetoothHost.c +++ b/Demos/Host/Incomplete/BluetoothHost/BluetoothHost.c @@ -260,7 +260,7 @@ void Bluetooth_DisconnectionComplete(void) * the user application must indicate if the channel connection should be rejected or not, based on the * protocol (PSM) value of the requested channel. * - * \param PSM Protocol PSM value for the requested channel + * \param[in] PSM Protocol PSM value for the requested channel * * \return Boolean true to accept the channel connection request, false to reject it */ @@ -283,15 +283,15 @@ void Bluetooth_PacketReceived(void* Data, uint16_t DataLen, Bluetooth_Channel_t* { case CHANNEL_PSM_SDP: /* Service Discovery Protocol packet */ - ServiceDiscovery_ProcessPacket(Data, Channel); + SDP_ProcessPacket(Data, Channel); + break; + case CHANNEL_PSM_RFCOMM: + /* RFCOMM (Serial Port) Protocol packet */ + RFCOMM_ProcessPacket(Data, Channel); break; default: /* Unknown Protocol packet */ - printf_P(PSTR("Packet Received (Channel 0x%04X, PSM: 0x%02x):\r\n"), Channel->LocalNumber, Channel->PSM); - for (uint16_t Byte = 0; Byte < DataLen; Byte++) - printf_P(PSTR("0x%02X "), ((uint8_t*)Data)[Byte]); - puts_P(PSTR("\r\n")); - + printf_P(PSTR("Unknown Packet Received (Channel 0x%04X, PSM: 0x%02X):\r\n"), Channel->LocalNumber, Channel->PSM); break; } }