From 95e1ea053a6fb18d2f7f514877fc42051cdde924 Mon Sep 17 00:00:00 2001 From: Marcus Date: Sun, 13 Aug 2023 01:25:45 +0200 Subject: [PATCH] first (dirty) protoype of having two solar controllers with two seperate mx485 --- arduino-max485-epever-json-serial.ino | 3 +++ 1 file changed, 3 insertions(+) diff --git a/arduino-max485-epever-json-serial.ino b/arduino-max485-epever-json-serial.ino index 2ce4a7a..f2a2ee6 100644 --- a/arduino-max485-epever-json-serial.ino +++ b/arduino-max485-epever-json-serial.ino @@ -71,6 +71,9 @@ #include #include "ArduinoJson.h" +// when having two solar controllers, set it to true, otherwise to false +// it is important to set it to false when only having one solar controller +// to avoid waiting for the timeout of the second controller bool twoController = true; SoftwareSerial myserial(10, 11); // RX, TX