X-Git-Url: http://git.linex4red.de/pub/USBasp.git/blobdiff_plain/70983caea5dc6d817c3a887d66a2f43fce535bbd..5dfa25f81acb5480aec091d3391ba3be2d33600d:/Demos/Host/Incomplete/BluetoothHost/BluetoothHost.c?ds=inline diff --git a/Demos/Host/Incomplete/BluetoothHost/BluetoothHost.c b/Demos/Host/Incomplete/BluetoothHost/BluetoothHost.c index 486a023f9..8301e85bd 100644 --- a/Demos/Host/Incomplete/BluetoothHost/BluetoothHost.c +++ b/Demos/Host/Incomplete/BluetoothHost/BluetoothHost.c @@ -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"