Update main.c change sleep from -250 to -750 to reduce from 5.6

pull/323/head
Alan Johnston 1 year ago committed by GitHub
parent f30dcd3c7d
commit c23c116d6f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -1188,10 +1188,10 @@ void get_tlm_fox() {
/**/
// while ((millis() - sampleTime) < (unsigned int)samplePeriod)
int startSleep = millis();
if ((millis() - sampleTime) < ((unsigned int)frameTime - 250)) // was 250 100 500 for FSK
if ((millis() - sampleTime) < ((unsigned int)frameTime - 750)) // was 250 100 500 for FSK
// sleep(2.0); // 0.5); // 25); // initial period
sleep(1.0); // 0.5); // 25); // initial period
while ((millis() - sampleTime) < ((unsigned int)frameTime - 250)) // was 250 100
while ((millis() - sampleTime) < ((unsigned int)frameTime - 750)) // was 250 100
sleep(0.1); // 25); // 0.5); // 25);
// sleep((unsigned int)sleepTime);
/**/

Loading…
Cancel
Save

Powered by TurnKey Linux.