Update cubesatsim.ino

pull/153/head
alanbjohnston 4 years ago committed by GitHub
parent dff107b809
commit 2ebdcd7dc1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -514,10 +514,17 @@ void get_tlm_fox() {
/**/
// while ((millis() - sampleTime) < (unsigned int)samplePeriod)
int startSleep = millis();
if ((millis() - sampleTime) < ((unsigned int)sampleTime - 250)) // was 250 100 500 for FSK
sleep(2.0); // 0.5); // 25); // initial period
while ((millis() - sampleTime) < ((unsigned int)sampleTime - 250)) // was 250 100
sleep(0.1); // 25); // 0.5); // 25);
/*
if ((millis() - sampleTime) < ((unsigned int)frameTime - 250)) // was 250 100 500 for FSK
sleep(2.0); // 0.5); // 25); // initial period
while ((millis() - sampleTime) < ((unsigned int)frameTime - 250)) // was 250 100
sleep(0.1); // 25); // 0.5); // 25);
*/
// sleep((unsigned int)sleepTime);
/**/
// Serial.print("Sleep period: ");

Loading…
Cancel
Save

Powered by TurnKey Linux.