Skip to content

Commit

Permalink
Revert "missed some changes in last commit"
Browse files Browse the repository at this point in the history
This reverts commit 2f1bb0d.
  • Loading branch information
Alois Klingler committed Jul 31, 2024
1 parent 373ff32 commit a2e1c0d
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 1 addition & 1 deletion src/ModbusDtu.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ void ModbusDtuClass::loop()
mb.Hreg(0x9ca1, hexbytes[1]);
mb.Hreg(0x9ca2, hexbytes[0]);
value = (Datastore.getTotalAcYieldTotalEnabled()*1000);
if (value != 0 && Datastore.getIsAllEnabledReachable()) {
if (value != 0) {
mb.Hreg(0x9cc1, hexbytes[1]);
mb.Hreg(0x9cc2, hexbytes[0]);
}
Expand Down
2 changes: 0 additions & 2 deletions src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -175,8 +175,6 @@ void loop()
ModbusDtu.init();
MessageOutput.println(F("done"));
yield();
ModbusDtu.loop();
yield();
}
}
MqttHandleDtu.loop();
Expand Down

0 comments on commit a2e1c0d

Please sign in to comment.