From e703007bb08950f68f5a42df6bc6f6d53e8dfd9c Mon Sep 17 00:00:00 2001 From: alanbjohnston Date: Fri, 15 Jul 2022 09:28:06 -0400 Subject: [PATCH] make sure built in LED is on before blinking --- cubesatsim/cubesatsim.ino | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/cubesatsim/cubesatsim.ino b/cubesatsim/cubesatsim.ino index 74f71fba..5c80ccac 100644 --- a/cubesatsim/cubesatsim.ino +++ b/cubesatsim/cubesatsim.ino @@ -2487,6 +2487,8 @@ void process_pushbutton() { int release = FALSE; + digitalWrite(LED_BUILTIN, HIGH); // make sure built in LED is on before starting to blink + sleep(1.0); int pb_value = digitalRead(MAIN_PB_PIN); @@ -2578,6 +2580,8 @@ void process_bootsel() { int release = FALSE; +digitalWrite(LED_BUILTIN, HIGH); // make sure built in LED is on before blinking + sleep(1.0); // int pb_value = digitalRead(MAIN_PB_PIN);