add P4, bring back lost comment

minor updates
- added ESP32-P4 to USB-CDC whitelist
- restored lost comment
This commit is contained in:
Frank
2026-02-06 19:00:48 +01:00
parent a001bd1892
commit a5c6740d96
2 changed files with 5 additions and 5 deletions

View File

@@ -76,8 +76,8 @@ void sendBytes(){
}
bool canUseSerial(void) { // WLEDMM returns true if Serial can be used for debug output (i.e. not configured for other purpose)
#if ARDUINO_USB_CDC_ON_BOOT && (defined(CONFIG_IDF_TARGET_ESP32S3) || defined(CONFIG_IDF_TARGET_ESP32C3) || defined(CONFIG_IDF_TARGET_ESP32C6)) && !defined(WLED_DEBUG_HOST)
// on S3/C3/C6, USB CDC blocks if disconnected! so check if Serial is active before printing to it.
#if ARDUINO_USB_CDC_ON_BOOT && (defined(CONFIG_IDF_TARGET_ESP32S3) || defined(CONFIG_IDF_TARGET_ESP32C3) || defined(CONFIG_IDF_TARGET_ESP32C6) || defined(CONFIG_IDF_TARGET_ESP32P4)) && !defined(WLED_DEBUG_HOST)
// on S3/C3/C6/P4, USB CDC blocks if disconnected! so check if Serial is active before printing to it.
if (!Serial) return false;
#endif
if (pinManager.isPinAllocated(hardwareTX) && (pinManager.getPinOwner(hardwareTX) != PinOwner::DebugOut))