Bluetooth_ProcessACLPackets();\r
}\r
\r
-bool CALLBACK_Bluetooth_ConnectionRequest(uint8_t* RemoteAddress)\r
-{\r
- /* Always accept connections from remote devices */\r
- return true;\r
-}\r
-\r
Bluetooth_Channel_t* Bluetooth_GetChannelData(uint16_t ChannelNumber, bool SearchBySource)\r
{\r
- Bluetooth_Channel_t* CurrentChannelStructure;\r
-\r
for (uint8_t i = 0; i < BLUETOOTH_MAX_OPEN_CHANNELS; i++)\r
{\r
- CurrentChannelStructure = &Bluetooth_Connection.Channels[i];\r
+ Bluetooth_Channel_t* CurrentChannelStructure = &Bluetooth_Connection.Channels[i];\r
\r
- uint16_t CurrentChannelNumber = ((SearchBySource) ? CurrentChannelStructure->RemoteNumber : CurrentChannelStructure->LocalNumber);\r
+ uint16_t CurrentChannelNumber = (SearchBySource) ? CurrentChannelStructure->RemoteNumber :\r
+ CurrentChannelStructure->LocalNumber;\r
\r
if (CurrentChannelNumber == ChannelNumber)\r
return CurrentChannelStructure;\r
\r
Bluetooth_Channel_t* Bluetooth_InitChannelData(uint16_t RemoteChannelNumber, uint16_t PSM)\r
{\r
- Bluetooth_Channel_t* CurrentChannelStructure;\r
-\r
for (uint8_t i = 0; i < BLUETOOTH_MAX_OPEN_CHANNELS; i++)\r
{\r
- CurrentChannelStructure = &Bluetooth_Connection.Channels[i];\r
+ Bluetooth_Channel_t* CurrentChannelStructure = &Bluetooth_Connection.Channels[i];\r
\r
if (CurrentChannelStructure->State == Channel_Closed)\r
{\r