Disable auto buffer size for HAN on ESP8266 (#1086)

This commit is contained in:
Gunnar Skjold 2025-12-11 11:34:46 +01:00 committed by GitHub
parent 98bf5b958f
commit ad73821f1c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -807,6 +807,7 @@ void PassiveMeterCommunicator::rxerr(int err) {
#endif
debugger->printf_P(PSTR("Serial buffer overflow\n"));
rxBufferErrors++;
#if defined(ESP32)
if(rxBufferErrors > 1 && meterConfig.bufferSize < 8) {
meterConfig.bufferSize += 2;
#if defined(AMS_REMOTE_DEBUG)
@ -816,6 +817,7 @@ void PassiveMeterCommunicator::rxerr(int err) {
configChanged = true;
rxBufferErrors = 0;
}
#endif
break;
case 3:
#if defined(AMS_REMOTE_DEBUG)