From c2e9a5d526b90e560befcd26f68459099a17059e Mon Sep 17 00:00:00 2001 From: alanbjohnston Date: Thu, 23 Feb 2023 16:51:31 -0500 Subject: [PATCH] change Handler1 to get_input only with 1/10 skip for serial --- cubesatsim/cubesatsim.ino | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/cubesatsim/cubesatsim.ino b/cubesatsim/cubesatsim.ino index 509188f0..f701d338 100644 --- a/cubesatsim/cubesatsim.ino +++ b/cubesatsim/cubesatsim.ino @@ -341,7 +341,7 @@ void loop() { } bool TimerHandler1(struct repeating_timer *t) { - +/* if (((skip++)%10) == 0) serial_input(); @@ -353,6 +353,8 @@ bool TimerHandler1(struct repeating_timer *t) { // if (wifi) // check_for_browser(); +*/ + get_input(); return(true); } @@ -4954,8 +4956,9 @@ void start_clockgen() { } void get_input() { - - serial_input(); + + if (((skip++)%10) == 0) + serial_input(); // check for button press if (digitalRead(MAIN_PB_PIN) == PRESSED) // pushbutton is pressed