From 65d8120abb237de84c1c487e36eb5ba9c8fb4216 Mon Sep 17 00:00:00 2001 From: Ashley Strahle Date: Wed, 24 Jun 2026 00:47:00 +0000 Subject: [PATCH] Fix USB diagnostic command to use native USB API --- src/main.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main.cpp b/src/main.cpp index 2a15c75..95ae309 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -83,8 +83,8 @@ void handle_serial_command(const String& cmd) { mux.show(); Serial.println("[CMD] Pixel 1 WHITE (max brightness)"); } else if (cmd == "usb") { - Serial.printf("[CMD] USB mounted: %s\n", TinyUSBDevice.mounted() ? "YES" : "NO"); - Serial.printf("[CMD] USB ready: %s\n", TinyUSBDevice.ready() ? "YES" : "NO"); + Serial.printf("[CMD] USB mounted: %s\n", USB.mounted() ? "YES" : "NO"); + Serial.printf("[CMD] USB ready: %s\n", USB.ready() ? "YES" : "NO"); } else if (cmd == "gpiotest") { Serial.println("[CMD] === Raw GPIO Test ==="); uint8_t pins[] = {9, 10, 11, 12};