Re-add deleted linker options to the Bootloader makefiles, which was preventing the...
[pub/USBasp.git] / Demos / Host / Incomplete / BluetoothHost / BluetoothHost.c
index 486a023..8301e85 100644 (file)
@@ -58,8 +58,7 @@ int main(void)
 
        for (;;)
        {
-               if ((RFCOMMChannel != NULL) && (RFCOMMChannel->State == BT_Channel_Open))
-                 RFCOMM_ServiceChannels(RFCOMMChannel);
+               RFCOMM_ServiceChannels(SerialChannel_ACL);
                
                Bluetooth_Host_Task();
                Bluetooth_Stack_USBTask();
@@ -124,7 +123,8 @@ void EVENT_USB_Host_HostError(const uint8_t ErrorCode)
 /** Event handler for the USB_DeviceEnumerationFailed event. This indicates that a problem occurred while
  *  enumerating an attached USB device.
  */
-void EVENT_USB_Host_DeviceEnumerationFailed(const uint8_t ErrorCode, const uint8_t SubErrorCode)
+void EVENT_USB_Host_DeviceEnumerationFailed(const uint8_t ErrorCode,
+                                            const uint8_t SubErrorCode)
 {
        printf_P(PSTR(ESC_FG_RED "Dev Enum Error\r\n"
                                 " -- Error Code %d\r\n"