MCPcopy Create free account
hub / github.com/bmorcelli/Launcher / usbDeviceTask

Function usbDeviceTask

src/massStorage.cpp:80–91  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

78}
79
80void 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
93void restoreUsbSerial() {
94#if CONFIG_IDF_TARGET_ESP32P4

Callers

nothing calls this directly

Calls 1

drawUSBStickIconFunction · 0.85

Tested by

no test coverage detected