bit of cleanup

This commit is contained in:
Marcus 2023-08-13 02:50:15 +02:00
parent 28f49e981d
commit f74b56ca05

View file

@ -154,12 +154,13 @@ void setup()
digitalWrite(MAX485_RE_NEG2, 0); digitalWrite(MAX485_RE_NEG2, 0);
digitalWrite(MAX485_DE2, 0); digitalWrite(MAX485_DE2, 0);
} }
// Modbus communication runs at 115200 baud
//Tracer connection // Modbus communication runs at 115200 baud
//Tracer connection 1
myserial.begin(115200); myserial.begin(115200);
if(twoController == true) { if(twoController == true) {
//Tracer connection 2
myserial2.begin(115200); myserial2.begin(115200);
} }
//USB Serial connection //USB Serial connection
@ -183,10 +184,6 @@ void setup()
} }
//was true
bool state = true;
int countRound = 0;
void loop() void loop()
{ {
myserial.listen(); myserial.listen();
@ -236,9 +233,7 @@ void loop()
serializeJson(jsonOut, Serial); serializeJson(jsonOut, Serial);
//Serial.println(); //Serial.println();
//Serial.write( '\r' ); // Carriage Return //Serial.write( '\r' ); // Carriage Return
Serial.write( '\n' ); // Carriage Return Serial.write( '\n' ); // EOL
Serial.println(countRound);
countRound++;
delay(1000); delay(1000);
} }