reducing frameTime by 0.5 instead of 0.1

pull/105/head
alanbjohnston 5 years ago committed by GitHub
parent 3d830067db
commit e0c16cca58
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -1405,7 +1405,7 @@ void get_tlm_fox() {
/**/ /**/
// while ((millis() - sampleTime) < (unsigned int)samplePeriod) // while ((millis() - sampleTime) < (unsigned int)samplePeriod)
int startSleep = millis(); int startSleep = millis();
while ((millis() - sampleTime) < ((unsigned int)frameTime - 100)) while ((millis() - sampleTime) < ((unsigned int)frameTime - 500)) // was 100
sleep(0.5); // 25); sleep(0.5); // 25);
// sleep((unsigned int)sleepTime); // sleep((unsigned int)sleepTime);
/**/ /**/

Loading…
Cancel
Save

Powered by TurnKey Linux.