Merge remote-tracking branch 'upstream/main' into mdev

This commit is contained in:
Frank
2023-03-16 16:54:23 +01:00
3 changed files with 5 additions and 2 deletions

View File

@@ -89,7 +89,7 @@ bool canUseSerial(void) { // WLEDMM returns true if Serial can be used for deb
void handleSerial()
{
if (pinManager.isPinAllocated(hardwareRX)) return;
if (!Serial) return; // WLEDMM - serial not connected (USB CDC)
if (!Serial) return; // arduino docs: `if (Serial)` indicates whether or not the USB CDC serial connection is open. For all non-USB CDC ports, this will always return true
if (((pinManager.isPinAllocated(hardwareTX)) && (pinManager.getPinOwner(hardwareTX) != PinOwner::DebugOut))) return; // WLEDMM serial TX is necessary for adalight / TPM2
#ifdef WLED_ENABLE_ADALIGHT