mirror of
https://github.com/arendst/Tasmota.git
synced 2026-07-27 20:05:46 +00:00
Fix ESP8266 crash-loop on PZEM/Modbus: move stray delay() inside rx-enable guard (#24886)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user