From 7770c58e301ddb9b2873b469c75f886a5368b899 Mon Sep 17 00:00:00 2001 From: alanbjohnston Date: Fri, 18 Jun 2021 14:11:11 -0400 Subject: [PATCH] just test to see if less than 500 ms, sleep 4.0 --- afsk/main.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/afsk/main.c b/afsk/main.c index 6c037b2c..70d235f7 100644 --- a/afsk/main.c +++ b/afsk/main.c @@ -1403,7 +1403,7 @@ 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 @@ -1411,10 +1411,10 @@ void get_tlm_fox() { while ((millis() - sampleTime) < ((unsigned int)frameTime - 100)) // was 100 sleep(0.25); // 0.5); // 25); // sleep((unsigned int)sleepTime); -/**/ +*/ -// if ((millis() - sampleTime) < 500) // incomplete - + if ((millis() - sampleTime) < 500) // + sleep(4.0); /* // most recent sleep code