Fix up Bluetooth Demo's options processing on incoming channel configuration requests.

This commit is contained in:
Dean Camera 2010-04-11 02:45:42 +00:00
parent 28f1ac8117
commit 26421b38cd
2 changed files with 23 additions and 22 deletions

View file

@ -251,8 +251,8 @@ void Bluetooth_PacketReceived(uint16_t* PacketLength, Bluetooth_Channel_t* Chann
Pipe_Read_Stream_LE(&DataPayload, *PacketLength);
*PacketLength = 0;
printf_P(PSTR("L2CAP Packet Recetion on channel %02X:\r\n"), Channel->LocalNumber);
for (uint16_t Byte = 0; Byte < *PacketLength; Byte++)
printf_P(PSTR("Packet Received (Channel 0x%04X, PSM: 0x%02x):\r\n"), Channel->LocalNumber, Channel->PSM);
for (uint16_t Byte = 0; Byte < sizeof(DataPayload); Byte++)
printf_P(PSTR("0x%02X "), DataPayload[Byte]);
puts_P(PSTR("\r\n"));
}