Implement proper shutdown procedure for R1 neo

fixes #2361
This commit is contained in:
Wessel Nieboer
2026-04-21 21:29:18 +02:00
parent d532481f34
commit 07671cf1fe
2 changed files with 10 additions and 1 deletions

View File

@@ -18,6 +18,12 @@ public:
R1NeoBoard() : NRF52Board("R1NEO_OTA") {}
void begin();
#ifdef NRF52_POWER_MANAGEMENT
void powerOff() override {
initiateShutdown(SHUTDOWN_REASON_USER);
}
#endif
#if defined(P_LORA_TX_LED)
void onBeforeTransmit() override {
digitalWrite(P_LORA_TX_LED, HIGH); // turn TX LED on