From 4da516a55ebaa0218230bf85a9f4dc2a445c0012 Mon Sep 17 00:00:00 2001 From: alanbjohnston Date: Thu, 14 Jul 2022 11:05:37 -0400 Subject: [PATCH] changed from samplePeriod to frameTime --- cubesatsim/cubesatsim.ino | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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();