From 9c09a01cbec57ff310ad39858584de1d635862fe Mon Sep 17 00:00:00 2001 From: alanbjohnston Date: Sun, 27 Nov 2022 15:39:39 -0500 Subject: [PATCH] turn of BUILTIN LED after blinking --- cubesatsim/cubesatsim.ino | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/cubesatsim/cubesatsim.ino b/cubesatsim/cubesatsim.ino index a537f823..8337481a 100644 --- a/cubesatsim/cubesatsim.ino +++ b/cubesatsim/cubesatsim.ino @@ -3408,6 +3408,8 @@ void process_pushbutton() { if (new_mode != mode) transmit_off(); sleep(2.0); + + digitalWrite(LED_BUILTIN, LOW); // make sure built-in LED is off } void process_bootsel() { @@ -3505,6 +3507,8 @@ void process_bootsel() { if (new_mode != mode) transmit_off(); // sleep(2.0); + + digitalWrite(LED_BUILTIN, LOW); // make sure built-in LED is off } void blinkTimes(int blinks) {