Added carriage return option (for MiniCom testing)

merge-requests/5/head
Chuck Faber 2018-09-15 20:07:58 +00:00
parent ebf324459f
commit 8fe5a5fee4
1 changed files with 1 additions and 1 deletions

View File

@ -72,7 +72,7 @@ ISR(WDT_vect) {
String str1, str2, str3, str4, str5, str6;
while (rs485.available() > 0) {
incomingByte = rs485.read();
if (incomingByte == '\n') {
if (incomingByte == '\n' || incomingByte == '\r') {
buffer[BufferCnt] = 0;
if (buffer[0] == 'G' && buffer[1] == 'S') {
str1 = String("GS");