From 07009ed0df2803eb6c2b5336c9d81d0b570e03ac Mon Sep 17 00:00:00 2001 From: Peter Zich Date: Mon, 6 Jan 2025 03:24:24 -0800 Subject: [PATCH] change: Add #ifndef for USB_VID and USB_PID for esp32s3 board variant This adds #ifndef for USB_VID and USB_PID for esp32s3 board variant, allowing the end user to customize these values and therefore how the device shows up when connected to USB. --- variants/esp32s3/pins_arduino.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/variants/esp32s3/pins_arduino.h b/variants/esp32s3/pins_arduino.h index 623d684e20f..7b96340c0e2 100644 --- a/variants/esp32s3/pins_arduino.h +++ b/variants/esp32s3/pins_arduino.h @@ -4,8 +4,12 @@ #include #include "soc/soc_caps.h" +#ifndef USB_VID #define USB_VID 0x303a +#endif +#ifndef USB_PID #define USB_PID 0x1001 +#endif // Some boards have too low voltage on this pin (board design bug) // Use different pin with 3V and connect with 48