Fix ESP8266 crash-loop on PZEM/Modbus: move stray delay() inside rx-enable guard (#24886)

This commit is contained in:
gionag
2026-07-20 15:52:18 +02:00
committed by GitHub
parent 5614aaec2a
commit 3dd46b0b44
2 changed files with 2 additions and 1 deletions
+1
View File
@@ -18,6 +18,7 @@ All notable changes to this project will be documented in this file.
### Fixed
- BLE EQ3 float output in mqtt messages regression from v15.4.0.2 (#24869)
- Default button/switch actions on builds without rules regression from v15.4.0.2 (#24871)
- PZEM/Modbus energy monitor Exception crash-loop on ESP8266 regression from v15.5.0 (#24883)
### Removed
@@ -213,8 +213,8 @@ uint8_t TasmotaModbus::Send(uint8_t device_address, uint8_t function_code, uint1
write(frame, framepointer);
#ifdef TASMOTA_MODBUS_RX_ENABLE
delay(10); // add a delay to allow write buffers to empty
if (mb_rx_enable_pin > -1) {
delay(10); // allow write buffer to drain before re-enabling Rx
digitalWrite(mb_rx_enable_pin, LOW);
}
#endif // TASMOTA_MODBUS_RX_ENABLE