Skip to content

Commit

Permalink
sleep 0.1
Browse files Browse the repository at this point in the history
  • Loading branch information
alanbjohnston authored Jun 20, 2021
1 parent aabb406 commit bcc9e49
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions afsk/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -1406,10 +1406,10 @@ void get_tlm_fox() {
/**/
// while ((millis() - sampleTime) < (unsigned int)samplePeriod)
int startSleep = millis();
if ((millis() - sampleTime) < ((unsigned int)frameTime - 250)) // was 100 500 for FSK
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 100
sleep(0.25); // 25); // 0.5); // 25);
while ((millis() - sampleTime) < ((unsigned int)frameTime - 250)) // was 250 100
sleep(0.1); // 25); // 0.5); // 25);
// sleep((unsigned int)sleepTime);
/**/

Expand Down

0 comments on commit bcc9e49

Please sign in to comment.