Commit e790af6
committed
FoxESS (Modbus): heartbeat: use ensureReg for setpoint writes
Some firmware rejects WriteMultipleRegisters (FC 0x10) with exception 3
when the register already holds the value being written. Use ensureReg
in the heartbeat so it skips the write when the setpoint is unchanged,
avoiding spurious error logs every 30s.1 parent fbebc96 commit e790af6
1 file changed
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
218 | 218 | | |
219 | 219 | | |
220 | 220 | | |
221 | | - | |
| 221 | + | |
222 | 222 | | |
223 | | - | |
| 223 | + | |
224 | 224 | | |
225 | 225 | | |
226 | 226 | | |
| |||
0 commit comments