From 84d3c68f31a47e53ce0b374e3b4ab6f39c3ed75d Mon Sep 17 00:00:00 2001 From: mattmcw Date: Mon, 13 Feb 2023 15:40:56 -0500 Subject: [PATCH] Print output from softSerial --- ino/softserial_mock/softserial_mock.ino | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ino/softserial_mock/softserial_mock.ino b/ino/softserial_mock/softserial_mock.ino index 848a631..f35562f 100644 --- a/ino/softserial_mock/softserial_mock.ino +++ b/ino/softserial_mock/softserial_mock.ino @@ -29,4 +29,8 @@ void loop () { softSerial.write(cmdChar); Serial.println(cmdChar); } + if (softSerial.available()) { + cmdChar = (char)softSerial.read(); + Serial.println(cmdChar); + } } \ No newline at end of file