Skip to content

Commit 3ea9f04

Browse files
author
Marcus Sonestedt
committed
ServoPID: Remove unnecessary Serial.flush() calls
1 parent 06ef2aa commit 3ea9f04

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

servopid.ino

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -277,15 +277,13 @@ void loop()
277277

278278
if (x++ % 100 == 0)
279279
{
280-
Serial.flush();
281280
Serial.print(F("DT "));
282281
Serial.print(dt, 6);
283282
Serial.print(' ');
284283
Serial.print(minDt, 6);
285284
Serial.print(' ');
286285
Serial.print(maxDt, 6);
287286
Serial.print('\n');
288-
Serial.flush();
289287

290288
minDt = 100;
291289
maxDt = 0;
@@ -415,7 +413,6 @@ void handleSerialCommand()
415413
{
416414
const auto& servo = PidServos[i];
417415

418-
Serial.flush();
419416
Serial.print(F("SP "));
420417
Serial.print(i);
421418
Serial.print(' ');
@@ -441,7 +438,6 @@ void handleSerialCommand()
441438

442439
const auto& servo = PidServos[i];
443440

444-
Serial.flush();
445441
Serial.print(F("SD "));
446442
Serial.print(i);
447443
Serial.print(' ');

0 commit comments

Comments
 (0)