Fix up Bluetooth Demo's options processing on incoming channel configuration requests.
[pub/USBasp.git] / Demos / Host / Incomplete / BluetoothHost / BluetoothHost.c
index fbacc25..d2bd075 100644 (file)
@@ -251,8 +251,8 @@ void Bluetooth_PacketReceived(uint16_t* PacketLength, Bluetooth_Channel_t* Chann
        Pipe_Read_Stream_LE(&DataPayload, *PacketLength);\r
        *PacketLength = 0;\r
 \r
-       printf_P(PSTR("L2CAP Packet Recetion on channel %02X:\r\n"), Channel->LocalNumber);\r
-       for (uint16_t Byte = 0; Byte < *PacketLength; Byte++)\r
+       printf_P(PSTR("Packet Received (Channel 0x%04X, PSM: 0x%02x):\r\n"), Channel->LocalNumber, Channel->PSM);\r
+       for (uint16_t Byte = 0; Byte < sizeof(DataPayload); Byte++)\r
          printf_P(PSTR("0x%02X "), DataPayload[Byte]);\r
        puts_P(PSTR("\r\n"));\r
 }\r