Skip to content

Commit ee47078

Browse files
committed
Illuminate LEDs during power off
1 parent 321371a commit ee47078

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

Firmware/RTK_Everywhere/Begin.ino

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -819,12 +819,16 @@ void tickerBegin()
819819
}
820820
}
821821

822-
//Stop any ticker tasks
822+
//Stop any ticker tasks and PWM control
823823
void tickerStop()
824824
{
825825
bluetoothLedTask.detach();
826826
gnssLedTask.detach();
827827
batteryLedTask.detach();
828+
829+
ledcDetachPin(pin_bluetoothStatusLED);
830+
ledcDetachPin(pin_gnssStatusLED);
831+
ledcDetachPin(pin_batteryStatusLED);
828832
}
829833

830834
// Configure the battery fuel gauge

Firmware/RTK_Everywhere/Tasks.ino

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1364,6 +1364,11 @@ void buttonCheckTask(void *e)
13641364
// Beep if we are not locally compiled or a release candidate
13651365
if (ENABLE_DEVELOPER == false)
13661366
beepDurationMs(500); // Announce powering down
1367+
1368+
tickerStop(); // Stop controlling LEDs via ticker task
1369+
1370+
gnssStatusLedOn();
1371+
bluetoothLedOn();
13671372
}
13681373
} // End productVariant == Torch
13691374
else // RTK EVK, RTK Facet v2, RTK Facet mosaic

0 commit comments

Comments
 (0)