added back in frameTime sleeping for both FSK and BPSK

pull/106/head
alanbjohnston 5 years ago committed by GitHub
parent 1812a43cba
commit 6be0dbf3d1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -1403,22 +1403,24 @@ void get_tlm_fox() {
if (firstTime != ON) {
// delay for sample period
/*
/**/
// while ((millis() - sampleTime) < (unsigned int)samplePeriod)
int startSleep = millis();
if ((millis() - sampleTime) < ((unsigned int)frameTime - 100)) // was 500 for FSK
sleep(3.8); // 0.5); // 25); // initial period
while ((millis() - sampleTime) < ((unsigned int)frameTime - 100)) // was 100
sleep(0.25); // 0.5); // 25);
sleep(0.1); // 25); // 0.5); // 25);
// sleep((unsigned int)sleepTime);
*/
/**/
/*
if ((millis() - sampleTime) < 500) //
if (mode == BPSK)
sleep(4.0);
// else // FSK
if (mode == FSK)
sleep(2.3);
*/
/*
// most recent sleep code

Loading…
Cancel
Save

Powered by TurnKey Linux.