[USBCDC] Properly fix USB CDC issues on ESP32-S2

This commit is contained in:
TD-er
2025-09-02 13:45:30 +02:00
parent 15b118f27b
commit 3bbff03497
2 changed files with 1 additions and 17 deletions
@@ -87,22 +87,6 @@ static void usbcdcEventCallback(void *arg, esp_event_base_t event_base, int32_t
}
*/
extern "C" {
// Stub implementation of the HID report received callback
// This is required by TinyUSB HID host but not used in ESPEasy
void tuh_hid_report_received_cb(uint8_t dev_addr, uint8_t idx, uint8_t const*report, uint16_t len)
{
// Empty implementation - HID host functionality is not used in ESPEasy
// Thanks Jason8266 for this fix :)
(void)dev_addr;
(void)idx;
(void)report;
(void)len;
}
}
Port_ESPEasySerial_USBCDC_t::Port_ESPEasySerial_USBCDC_t(const ESPEasySerialConfig& config)
{
# if ARDUINO_USB_CDC_ON_BOOT
+1 -1
View File
@@ -166,7 +166,7 @@ extra_scripts = ${esp82xx_common.extra_scripts}
[core_esp32_IDF5_5_0__3_2_0_LittleFS]
platform = https://github.com/Jason2866/platform-espressif32.git#0b2bdf30cd0744b0b37907ee022ee7e30bb8f8bc
;platform = https://github.com/Jason2866/platform-espressif32.git#Arduino/IDF55
platform_packages = framework-arduinoespressif32 @ https://github.com/Jason2866/esp32-arduino-lib-builder/releases/download/0109-1248-5.5/framework-arduinoespressif32-release_v5.5-717d5bca.zip
platform_packages = framework-arduinoespressif32 @ https://github.com/Jason2866/esp32-arduino-lib-builder/releases/download/0209-1054-5.5/framework-arduinoespressif32-release_v5.5-717d5bca.zip
build_flags = -DESP32_STAGE
-DESP_IDF_VERSION_MAJOR=5
-DLIBRARIES_NO_LOG=1