Skip to content

Commit 5a34bd5

Browse files
committed
turn off tx led when powering off
1 parent d4856a5 commit 5a34bd5

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/helpers/nrf52/ThinkNodeM1Board.h

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,14 @@ class ThinkNodeM1Board : public mesh::MainBoard {
5757
}
5858

5959
void powerOff() override {
60+
61+
// turn off all leds, sd_power_system_off will not do this for us
62+
#ifdef P_LORA_TX_LED
63+
digitalWrite(P_LORA_TX_LED, LOW);
64+
#endif
65+
66+
// power off board
6067
sd_power_system_off();
68+
6169
}
6270
};

0 commit comments

Comments
 (0)