Remove serial flushes to improve low baud performance
This commit is contained in:
parent
505c9299cd
commit
fb7793c5a1
|
@ -157,7 +157,7 @@ void sendValues(int length)
|
||||||
|
|
||||||
|
|
||||||
Serial.write(response, (size_t)packetSize);
|
Serial.write(response, (size_t)packetSize);
|
||||||
Serial.flush();
|
//Serial.flush();
|
||||||
return;
|
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)
|
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.write((byte *)&response, sizeof(response));
|
||||||
Serial.flush();
|
//Serial.flush();
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case ignPage:
|
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)
|
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.write((byte *)&response, sizeof(response));
|
||||||
Serial.flush();
|
//Serial.flush();
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case afrPage:
|
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)
|
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.write((byte *)&response, sizeof(response));
|
||||||
Serial.flush();
|
//Serial.flush();
|
||||||
break;
|
break;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
|
|
Loading…
Reference in New Issue