bit of cleanup
This commit is contained in:
parent
28f49e981d
commit
f74b56ca05
1 changed files with 4 additions and 9 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue