bugfix in SerialTransceiver
Signed-off-by: Stephan Richter <s.richter@srsoftware.de>
This commit is contained in:
@@ -25,7 +25,7 @@ void setup() {
|
|||||||
|
|
||||||
void loop() {
|
void loop() {
|
||||||
if (available485()) Serial.println(get485message());
|
if (available485()) Serial.println(get485message());
|
||||||
if (Serial.available()) {
|
while (Serial.available()) {
|
||||||
c = (char)Serial.read();
|
c = (char)Serial.read();
|
||||||
if (c == '\n') {
|
if (c == '\n') {
|
||||||
send485(message.c_str());
|
send485(message.c_str());
|
||||||
|
|||||||
Reference in New Issue
Block a user