Fix usb command: remove non-existent getter methods, use only mounted() and ready()
This commit is contained in:
+1
-4
@@ -85,10 +85,7 @@ void handle_serial_command(const String& cmd) {
|
|||||||
Serial.println("[CMD] Pixel 1 WHITE (max brightness)");
|
Serial.println("[CMD] Pixel 1 WHITE (max brightness)");
|
||||||
} else if (cmd == "usb") {
|
} else if (cmd == "usb") {
|
||||||
Serial.printf("[CMD] USB mounted: %s\n", TinyUSBDevice.mounted() ? "YES" : "NO");
|
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 ready: %s\n", TinyUSBDevice.ready() ? "YES" : "NO");
|
||||||
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());
|
|
||||||
} else if (cmd == "gpiotest") {
|
} else if (cmd == "gpiotest") {
|
||||||
Serial.println("[CMD] === Raw GPIO Test ===");
|
Serial.println("[CMD] === Raw GPIO Test ===");
|
||||||
uint8_t pins[] = {9, 10, 11, 12};
|
uint8_t pins[] = {9, 10, 11, 12};
|
||||||
|
|||||||
Reference in New Issue
Block a user