try initial sleep(4.0) then while sleep(0.1)

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

@ -1405,8 +1405,10 @@ void get_tlm_fox() {
/**/
// while ((millis() - sampleTime) < (unsigned int)samplePeriod)
int startSleep = millis();
while ((millis() - sampleTime) < ((unsigned int)frameTime - 500)) // was 100
sleep(1.0); // 0.5); // 25);
if ((millis() - sampleTime) < ((unsigned int)frameTime - 500)) // was 100
sleep(4.0); // 0.5); // 25); // initial period
while ((millis() - sampleTime) < ((unsigned int)frameTime - 500)) // was 100
sleep(0.1); // 0.5); // 25);
// sleep((unsigned int)sleepTime);
/**/

Loading…
Cancel
Save

Powered by TurnKey Linux.