just test to see if less than 500 ms, sleep 4.0

pull/106/head
alanbjohnston 5 years ago committed by GitHub
parent 972a529534
commit 7770c58e30
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -1403,7 +1403,7 @@ void get_tlm_fox() {
if (firstTime != ON) { if (firstTime != ON) {
// delay for sample period // delay for sample period
/**/ /*
// while ((millis() - sampleTime) < (unsigned int)samplePeriod) // while ((millis() - sampleTime) < (unsigned int)samplePeriod)
int startSleep = millis(); int startSleep = millis();
if ((millis() - sampleTime) < ((unsigned int)frameTime - 100)) // was 500 for FSK if ((millis() - sampleTime) < ((unsigned int)frameTime - 100)) // was 500 for FSK
@ -1411,10 +1411,10 @@ void get_tlm_fox() {
while ((millis() - sampleTime) < ((unsigned int)frameTime - 100)) // was 100 while ((millis() - sampleTime) < ((unsigned int)frameTime - 100)) // was 100
sleep(0.25); // 0.5); // 25); sleep(0.25); // 0.5); // 25);
// sleep((unsigned int)sleepTime); // sleep((unsigned int)sleepTime);
/**/ */
// if ((millis() - sampleTime) < 500) // incomplete
if ((millis() - sampleTime) < 500) //
sleep(4.0);
/* /*
// most recent sleep code // most recent sleep code

Loading…
Cancel
Save

Powered by TurnKey Linux.