ESP32s2 doesn't implement HWCDC (#8199)

This commit is contained in:
Austin 2025-10-03 19:52:51 -04:00 committed by GitHub
parent 0c2283e19e
commit b7f6a2acb6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -86,7 +86,7 @@ int32_t SerialConsole::runOnce()
#endif
int32_t delay = runOncePart();
#if defined(SERIAL_HAS_ON_RECEIVE)
#if defined(SERIAL_HAS_ON_RECEIVE) || defined(CONFIG_IDF_TARGET_ESP32S2)
return Port.available() ? delay : INT32_MAX;
#elif defined(IS_USB_SERIAL)
return HWCDC::isPlugged() ? delay : (1000 * 20);