From 64c9a0af5506f8815dff2cb362179285b10617c3 Mon Sep 17 00:00:00 2001 From: alanbjohnston Date: Thu, 23 Feb 2023 11:39:18 -0500 Subject: [PATCH] only call get_input before button_isr turned on --- cubesatsim/cubesatsim.ino | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/cubesatsim/cubesatsim.ino b/cubesatsim/cubesatsim.ino index b5a3777b..509188f0 100644 --- a/cubesatsim/cubesatsim.ino +++ b/cubesatsim/cubesatsim.ino @@ -65,7 +65,7 @@ Adafruit_SI5351 clockgen = Adafruit_SI5351(); unsigned long micros3; -int skip = 0; +volatile int skip = 0; //WiFiServer server(port); //WiFiClient client; @@ -181,7 +181,7 @@ void setup() { // start_pwm(); program_radio(); - get_input(); +// get_input(); prompt = PROMPT_HELP; // display input help menu prompt_for_input(); @@ -211,7 +211,7 @@ void setup() { ready = TRUE; // flag for core1 to start looping - get_input(); + // get_input(); /* Serial.print("s"); Serial.print(" "); @@ -315,7 +315,7 @@ void loop() { else Serial.println("Unknown mode!"); - get_input(); + // get_input(); // while ((millis() - sampleTime) < ((unsigned int)samplePeriod)) // - 250)) // was 250 100 while ((millis() - sampleTime) < ((unsigned int)frameTime)) // - 250)) // was 250 100 @@ -331,7 +331,7 @@ void loop() { transmit_led(HIGH); } - get_input(); + // get_input(); // Calculate loop time if (debug_mode) {