| 78 | } |
| 79 | |
| 80 | void usbDeviceTask(void *param) { |
| 81 | (void)param; |
| 82 | while (true) { |
| 83 | tud_task(); |
| 84 | bool mounted = tud_mounted(); |
| 85 | if (mounted != s_usbMounted) { |
| 86 | s_usbMounted = mounted; |
| 87 | drawUSBStickIcon(mounted); |
| 88 | } |
| 89 | vTaskDelay(1); |
| 90 | } |
| 91 | } |
| 92 | |
| 93 | void restoreUsbSerial() { |
| 94 | #if CONFIG_IDF_TARGET_ESP32P4 |
nothing calls this directly
no test coverage detected