From f74b56ca05de1831e2d994246283d96b42a65ad4 Mon Sep 17 00:00:00 2001 From: Marcus Date: Sun, 13 Aug 2023 02:50:15 +0200 Subject: [PATCH] bit of cleanup --- arduino-max485-epever-json-serial.ino | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) diff --git a/arduino-max485-epever-json-serial.ino b/arduino-max485-epever-json-serial.ino index 2598225..ad3c0f4 100644 --- a/arduino-max485-epever-json-serial.ino +++ b/arduino-max485-epever-json-serial.ino @@ -154,12 +154,13 @@ void setup() digitalWrite(MAX485_RE_NEG2, 0); digitalWrite(MAX485_DE2, 0); } + // Modbus communication runs at 115200 baud - - //Tracer connection + //Tracer connection 1 myserial.begin(115200); if(twoController == true) { + //Tracer connection 2 myserial2.begin(115200); } //USB Serial connection @@ -183,10 +184,6 @@ void setup() } -//was true -bool state = true; -int countRound = 0; - void loop() { myserial.listen(); @@ -236,9 +233,7 @@ void loop() serializeJson(jsonOut, Serial); //Serial.println(); //Serial.write( '\r' ); // Carriage Return - Serial.write( '\n' ); // Carriage Return - Serial.println(countRound); - countRound++; + Serial.write( '\n' ); // EOL delay(1000); }