do while loop

According to tests this speeds up about 1.2% loops
This commit is contained in:
VitorBoss 2016-10-25 10:22:09 -02:00
parent b6b85bb8bf
commit 7c91a0bbb9
1 changed files with 4 additions and 1 deletions

View File

@ -772,6 +772,8 @@ void setup()
}
void loop()
{
do
{
mainLoopCount++;
//Check for any requets from serial. Serial operations are checked under 2 scenarios:
@ -1403,7 +1405,8 @@ void loop()
}
}
}while(1); //Some tests result this in a 1.2% faster at 8500RPM
}
//************************************************************************************************
//Interrupts