From 3ad4ee7fe4df5c628f1ebbb35569daf12ce2b2ec Mon Sep 17 00:00:00 2001 From: alanbjohnston Date: Sat, 2 Jul 2022 06:39:22 -0400 Subject: [PATCH] Update cubesatsim.ino --- cubesatsim/cubesatsim.ino | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cubesatsim/cubesatsim.ino b/cubesatsim/cubesatsim.ino index 1c50630e..6457c954 100644 --- a/cubesatsim/cubesatsim.ino +++ b/cubesatsim/cubesatsim.ino @@ -113,7 +113,7 @@ void setup() { void loop() { - loop_cnt++; + loop_count++; // query INA219 sensors and Payload sensors @@ -202,7 +202,7 @@ void get_tlm_fox() { } if (mode == FSK) { - if (loop_cnt % 32 == 0) { // was 8 /// was loop now loop_cnt + if (loop_count % 32 == 0) { // was 8 /// was loop now loop_count printf("Sending MIN frame \n"); frm_type = 0x03; for (int count1 = 0; count1 < 17; count1++) { @@ -216,7 +216,7 @@ void get_tlm_fox() { sensor[count1] = sensor_min[count1]; } } - if ((loop_cnt + 16) % 32 == 0) { // was 8 + if ((loop_count + 16) % 32 == 0) { // was 8 printf("Sending MAX frame \n"); frm_type = 0x02; for (int count1 = 0; count1 < 17; count1++) {