Add bidirectional channel configuration -- remote device is not ACKing sent Configura...
[pub/lufa.git] / Demos / Host / Incomplete / BluetoothHost / BluetoothHost.c
index 5ed120a..fbacc25 100644 (file)
@@ -247,11 +247,12 @@ void Bluetooth_DisconnectionComplete(void)
 void Bluetooth_PacketReceived(uint16_t* PacketLength, Bluetooth_Channel_t* Channel)\r
 {\r
        uint8_t DataPayload[*PacketLength];\r
+\r
        Pipe_Read_Stream_LE(&DataPayload, *PacketLength);\r
        *PacketLength = 0;\r
 \r
-       BT_ACL_DEBUG("-- Data Payload: ", NULL);\r
-       for (uint16_t B = 0; B < sizeof(DataPayload); B++)\r
-         printf("0x%02X ", DataPayload[B]);\r
-       printf("\r\n"); \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("0x%02X "), DataPayload[Byte]);\r
+       puts_P(PSTR("\r\n"));\r
 }\r