X-Git-Url: http://git.linex4red.de/pub/USBasp.git/blobdiff_plain/9798440ca4f694e7cd8312a51b82e59589f1ebeb..4d3a594f3e26447ba223ac58292c9a77480ceed3:/Demos/Host/Incomplete/BluetoothHost/BluetoothACLPackets.c diff --git a/Demos/Host/Incomplete/BluetoothHost/BluetoothACLPackets.c b/Demos/Host/Incomplete/BluetoothHost/BluetoothACLPackets.c index d5af8d105..7697f88f5 100644 --- a/Demos/Host/Incomplete/BluetoothHost/BluetoothACLPackets.c +++ b/Demos/Host/Incomplete/BluetoothHost/BluetoothACLPackets.c @@ -34,6 +34,7 @@ void Bluetooth_ProcessACLPackets(void) { Bluetooth_ACL_Header_t ACLPacketHeader; + Bluetooth_DataPacket_Header_t DataHeader; Pipe_SelectPipe(BLUETOOTH_DATA_IN_PIPE); Pipe_SetToken(PIPE_TOKEN_IN); @@ -46,8 +47,6 @@ void Bluetooth_ProcessACLPackets(void) } Pipe_Read_Stream_LE(&ACLPacketHeader, sizeof(ACLPacketHeader)); - - Bluetooth_DataPacket_Header_t DataHeader; Pipe_Read_Stream_LE(&DataHeader, sizeof(DataHeader)); BT_DEBUG("(ACL) Packet Received", NULL); @@ -68,7 +67,14 @@ void Bluetooth_ProcessACLPackets(void) break; case BLUETOOTH_SIGNAL_CONFIGURATION_REQUEST: Bluetooth_ProcessSignalPacket_ConfigurationRequest(&ACLPacketHeader, &DataHeader, &SignalCommandHeader); - break; + break; + case BLUETOOTH_SIGNAL_INFORMATION_REQUEST: + BT_DEBUG("(ACL) -- Information Request, Discarded"); + + Pipe_Discard_Stream(ACLPacketHeader.DataLength); + Pipe_ClearIN(); + Pipe_Freeze(); + break; default: BT_DEBUG("(ACL) >> Unknown Signalling Command 0x%02X", SignalCommandHeader.Code);