From a2e1c0d5507a0d14554e260d44804691a529be5f Mon Sep 17 00:00:00 2001 From: Alois Klingler Date: Wed, 31 Jul 2024 08:26:06 +0200 Subject: [PATCH] Revert "missed some changes in last commit" This reverts commit 2f1bb0def1f8ca60eef4e3bd65a04333d2166c81. --- src/ModbusDtu.cpp | 2 +- src/main.cpp | 2 -- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/src/ModbusDtu.cpp b/src/ModbusDtu.cpp index 93a9cf2f7..930fad901 100644 --- a/src/ModbusDtu.cpp +++ b/src/ModbusDtu.cpp @@ -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]); } diff --git a/src/main.cpp b/src/main.cpp index 8ce0bb76c..8d86c5eee 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -175,8 +175,6 @@ void loop() ModbusDtu.init(); MessageOutput.println(F("done")); yield(); - ModbusDtu.loop(); - yield(); } } MqttHandleDtu.loop();