From c4f77fc0eaa6f13fbdccab9b09c94276326adb52 Mon Sep 17 00:00:00 2001 From: alanbjohnston Date: Sun, 29 Jan 2023 15:53:29 -0500 Subject: [PATCH] fixed one --- cubesatsim/cubesatsim.ino | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/cubesatsim/cubesatsim.ino b/cubesatsim/cubesatsim.ino index e1032ee5..35ddb6be 100644 --- a/cubesatsim/cubesatsim.ino +++ b/cubesatsim/cubesatsim.ino @@ -3511,10 +3511,11 @@ void process_bootsel() { // Serial.println("BOOTSEL pressed!"); int release = FALSE; - -// if (!wifi) - digitalWrite(led_builtin_pin, HIGH); // make sure built in LED is on before blinking - + + if (wifi) + digitalWrite(LED_BUILTIN, HIGH); // set the built-in LED ON + else + digitalWrite(led_builtin_pin, HIGH); // set the built-in LED ON sleep(1.0); // int pb_value = digitalRead(MAIN_PB_PIN);