From fb7793c5a1735f88f21a8eaa5d1357ec104e6b05 Mon Sep 17 00:00:00 2001 From: Josh Stewart Date: Tue, 10 Feb 2015 11:18:09 +1100 Subject: [PATCH] Remove serial flushes to improve low baud performance --- comms.ino | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/comms.ino b/comms.ino index 787d8327..3e9cda10 100644 --- a/comms.ino +++ b/comms.ino @@ -157,7 +157,7 @@ void sendValues(int length) Serial.write(response, (size_t)packetSize); - Serial.flush(); + //Serial.flush(); return; } @@ -307,7 +307,7 @@ void sendPage() response[x] = *(pnt_configPage + byte(x - offset)); //Each byte is simply the location in memory of configPage1 + the offset + the variable number (x) } Serial.write((byte *)&response, sizeof(response)); - Serial.flush(); + //Serial.flush(); break; case ignPage: @@ -324,7 +324,7 @@ void sendPage() response[x] = *(pnt_configPage + byte(x - offset)); //Each byte is simply the location in memory of configPage2 + the offset + the variable number (x) } Serial.write((byte *)&response, sizeof(response)); - Serial.flush(); + //Serial.flush(); break; case afrPage: @@ -341,7 +341,7 @@ void sendPage() response[x] = *(pnt_configPage + byte(x - offset)); //Each byte is simply the location in memory of configPage2 + the offset + the variable number (x) } Serial.write((byte *)&response, sizeof(response)); - Serial.flush(); + //Serial.flush(); break; default: