I configured my USB OTG port to CDC+MIDI, registered handler in:
Code: Select all
tinyusb_config_t tusb_cfg = TINYUSB_DEFAULT_CONFIG(device_event_handler, this);
Code: Select all
void device_event_handler(tinyusb_event_t *event, void *arg)
{}but it is never called when I unplug the cable.
I tried als check the status uf the tiny_usb in loop using:
Code: Select all
bool isConnected = tud_connected() && tud_mounted();Is this a bug or I missed something?
Thanks,
J.
Code: Select all
## IDF Component Manager Manifest File
dependencies:
idf: ">=5.2.0"
# TinyUSB wrapper and core:
espressif/esp_tinyusb: "~2.0.1"
espressif/tinyusb: ">=0.17.0"