summaryrefslogtreecommitdiffstatshomepage
path: root/shared/tinyusb/tusb_config.h
diff options
context:
space:
mode:
authorrobert-hh <robert@hammelrath.com>2024-07-17 20:43:51 +0200
committerDamien George <damien@micropython.org>2024-07-20 00:27:58 +1000
commita734ee9057a760b0316eca110d71db1524142fec (patch)
tree3214ec0671d24836f9514616114ed8c144221d1b /shared/tinyusb/tusb_config.h
parent847ee20d9b18c36e2160aaadfe71d2f7814648b1 (diff)
downloadmicropython-a734ee9057a760b0316eca110d71db1524142fec.tar.gz
micropython-a734ee9057a760b0316eca110d71db1524142fec.zip
shared/tinyusb/mp_usbd_cdc: Skip writing to an uninitialized USB device.
During execution of `boot.py` the USB device is not yet initialized. Any attempt to write to the CDC (eg calling `print()`) would lock up the device. This commit skips writing when the USB device is not initialized. Any output from `boot.py` is lost, but the device does not lock up. Also removed unnecessary declaration of `tusb_init()`. Signed-off-by: robert-hh <robert@hammelrath.com>
Diffstat (limited to 'shared/tinyusb/tusb_config.h')
0 files changed, 0 insertions, 0 deletions