Remove serial flushes to improve low baud performance

This commit is contained in:
Josh Stewart 2015-02-10 11:18:09 +11:00
parent 505c9299cd
commit fb7793c5a1
1 changed files with 4 additions and 4 deletions

View File

@ -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: