From cdfac43bfe0e0f0d3f223df40fb5537ea182f271 Mon Sep 17 00:00:00 2001 From: Ashley Strahle Date: Tue, 23 Jun 2026 23:13:28 +0000 Subject: [PATCH] Fix usb command: remove non-existent getter methods, use only mounted() and ready() --- src/main.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/main.cpp b/src/main.cpp index 106dc80..408833e 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -85,10 +85,7 @@ void handle_serial_command(const String& cmd) { 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 VID:PID = 0x%04X:0x%04X\n", TinyUSBDevice.vid(), TinyUSBDevice.pid()); - Serial.printf("[CMD] USB manufacturer: %s\n", TinyUSBDevice.manufacturerDescriptor()); - Serial.printf("[CMD] USB product: %s\n", TinyUSBDevice.productDescriptor()); - Serial.printf("[CMD] USB serial: %s\n", TinyUSBDevice.serialDescriptor()); + Serial.printf("[CMD] USB ready: %s\n", TinyUSBDevice.ready() ? "YES" : "NO"); } else if (cmd == "gpiotest") { Serial.println("[CMD] === Raw GPIO Test ==="); uint8_t pins[] = {9, 10, 11, 12};