-
Notifications
You must be signed in to change notification settings - Fork 3k
Closed
Labels
Description
Because of a blocking connect function in USBDevice ( https://github.com/mbedmicro/mbed/blob/master/libraries/USBDevice/USBDevice/USBDevice.cpp#L711 ) called from the USBCDC constructor ( https://github.com/mbedmicro/mbed/blob/master/libraries/USBDevice/USBSerial/USBCDC.cpp#L34 ), instatiating USB Serial with nothing connected on the actual port blocks execution.
I tried just commenting the while loop out and everything seems to run fine (connect/disconnect and CDC/serial communication with a host computer.
Maybe this should be solved in a different way - but especially when running on battery on KL25Z, this is a problem (the blocking).