Skip to content

Commit

Permalink
Fixed debug
Browse files Browse the repository at this point in the history
  • Loading branch information
gskjold committed Jun 15, 2024
1 parent 6277d58 commit 81b3aac
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/PassiveMeterCommunicator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -887,23 +887,19 @@ void PassiveMeterCommunicator::handleAutodetect(unsigned long now) {
autodetectCount = 0;
}
autodetectBaud = AUTO_BAUD_RATES[autodetectCount++];
#if defined(ESP_REMOTE_DEBUG)
#if defined(AMS_REMOTE_DEBUG)
if (debugger->isActive(RemoteDebug::INFO))
#endif
debugger->printf_P(PSTR("Meter serial autodetect, swapping to: %d, %d, %s\n"), autodetectBaud, autodetectParity, autodetectInvert ? "true" : "false");
#endif
meterConfig.bufferSize = max((uint32_t) 1, autodetectBaud / 14400);
setupHanPort(autodetectBaud, autodetectParity, autodetectInvert);
meterAutodetectLastChange = now;
}
} else if(autodetect) {
#if defined(ESP_REMOTE_DEBUG)
#if defined(AMS_REMOTE_DEBUG)
if (debugger->isActive(RemoteDebug::INFO))
#endif
debugger->printf_P(PSTR("Meter serial autodetected, saving: %d, %d, %s\n"), autodetectBaud, autodetectParity, autodetectInvert ? "true" : "false");
#endif
autodetect = false;
meterConfig.baud = autodetectBaud;
meterConfig.parity = autodetectParity;
Expand Down

0 comments on commit 81b3aac

Please sign in to comment.