From ad73821f1c30cc189eb3212d2a57e1ac12e7aca1 Mon Sep 17 00:00:00 2001 From: Gunnar Skjold Date: Thu, 11 Dec 2025 11:34:46 +0100 Subject: [PATCH] Disable auto buffer size for HAN on ESP8266 (#1086) --- lib/MeterCommunicators/src/PassiveMeterCommunicator.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/MeterCommunicators/src/PassiveMeterCommunicator.cpp b/lib/MeterCommunicators/src/PassiveMeterCommunicator.cpp index 8cd167c1..ad497825 100644 --- a/lib/MeterCommunicators/src/PassiveMeterCommunicator.cpp +++ b/lib/MeterCommunicators/src/PassiveMeterCommunicator.cpp @@ -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)