diff --git a/cubesatsim/cubesatsim.ino b/cubesatsim/cubesatsim.ino index 05b15596..7ff5da73 100644 --- a/cubesatsim/cubesatsim.ino +++ b/cubesatsim/cubesatsim.ino @@ -113,7 +113,8 @@ void loop() { else if (mode == AFSK) send_packet(); - while ((millis() - sampleTime) < ((unsigned int)samplePeriod)) // - 250)) // was 250 100 +// while ((millis() - sampleTime) < ((unsigned int)samplePeriod)) // - 250)) // was 250 100 + while ((millis() - sampleTime) < ((unsigned int)frameTime)) // - 250)) // was 250 100 sleep(0.1); // 25); // 0.5); // 25); sampleTime = (unsigned int) millis();