|
|
|
@ -25,7 +25,7 @@ void setup() {
@@ -25,7 +25,7 @@ void setup() {
|
|
|
|
|
|
|
|
|
|
void loop() { |
|
|
|
|
if (available485()) Serial.println(get485message()); |
|
|
|
|
if (Serial.available()) { |
|
|
|
|
while (Serial.available()) { |
|
|
|
|
c = (char)Serial.read(); |
|
|
|
|
if (c == '\n') { |
|
|
|
|
send485(message.c_str()); |
|
|
|
|