Skip to content

Commit

Permalink
fix delayed starting of modbus server
Browse files Browse the repository at this point in the history
  • Loading branch information
Alois Klingler committed Aug 6, 2024
1 parent ad04999 commit 7a2ae06
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/ModbusDtu.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,8 @@ void ModbusDtuClass::loop()
}

if (!_isstarted) {
if (Configuration.get().modbus.modbus_delaystart || (Datastore.getIsAllEnabledReachable() && Datastore.getTotalAcYieldTotalEnabled() != 0)) {
if (!(Configuration.get().modbus.modbus_delaystart) || (Datastore.getIsAllEnabledReachable() && Datastore.getTotalAcYieldTotalEnabled() != 0)) {
MessageOutput.printf("Modbus: starting server ... \r\n");
ModbusDtu.setup();
_modbusTask.enable();
} else {
Expand Down

0 comments on commit 7a2ae06

Please sign in to comment.