diff options
author | Dean Camera <dean@fourwalledcubicle.com> | 2010-06-03 08:33:01 +0000 |
---|---|---|
committer | Dean Camera <dean@fourwalledcubicle.com> | 2010-06-03 08:33:01 +0000 |
commit | a405a9bdf8338d947159317fba373fccd01fa0f3 (patch) | |
tree | 8cfc8ad00399d8ae3bfa2c3cb1cac5e679da231c /Demos/Host/Incomplete/BluetoothHost/BluetoothHost.c | |
parent | 480da5aab642eb7e5b87e604a55a91bf872b3607 (diff) | |
download | lufa-a405a9bdf8338d947159317fba373fccd01fa0f3.tar.gz lufa-a405a9bdf8338d947159317fba373fccd01fa0f3.tar.bz2 lufa-a405a9bdf8338d947159317fba373fccd01fa0f3.zip |
Extra protocol value in the RFCOMM protocol is the channel number, not the PSM - update typedef name and size.
Add delay to the Connection Request signal processing routine - without this, the host will not create the RFCOMM channel correctly. Need to investigate why this delay is needed.
Diffstat (limited to 'Demos/Host/Incomplete/BluetoothHost/BluetoothHost.c')
-rw-r--r-- | Demos/Host/Incomplete/BluetoothHost/BluetoothHost.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Demos/Host/Incomplete/BluetoothHost/BluetoothHost.c b/Demos/Host/Incomplete/BluetoothHost/BluetoothHost.c index 102867933..e300dd960 100644 --- a/Demos/Host/Incomplete/BluetoothHost/BluetoothHost.c +++ b/Demos/Host/Incomplete/BluetoothHost/BluetoothHost.c @@ -291,7 +291,8 @@ void Bluetooth_PacketReceived(void* Data, uint16_t DataLen, Bluetooth_Channel_t* break; default: /* Unknown Protocol packet */ - printf_P(PSTR("Unknown Packet Received (Channel 0x%04X, PSM: 0x%02X):\r\n"), Channel->LocalNumber, Channel->PSM); + printf_P(PSTR("Unknown Packet Received (Channel 0x%04X, PSM: 0x%02X, Len: 0x%04X):\r\n"), + Channel->LocalNumber, Channel->PSM, DataLen); break; } } |