Skip to content

Commit 8f5a393

Browse files
authored
Merge pull request #2975 from fdlamotte/nrf52_boards--use-shutdownPeripherals-on-TInpulse-and-TEchoBoard
nrf52_variants: override shutdownPeripherals instead of powerOff for …
2 parents 3a67685 + 84d1e24 commit 8f5a393

4 files changed

Lines changed: 7 additions & 7 deletions

File tree

variants/lilygo_t_impulse_plus/TImpulsePlusBoard.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,9 +47,9 @@ class TImpulsePlusBoard : public NRF52BoardDCDC {
4747
return "LilyGo T-Impulse-Plus";
4848
}
4949

50-
void powerOff() override {
50+
void shutdownPeripherals() override {
5151
// power off system
52-
NRF52Board::powerOff();
52+
NRF52Board::shutdownPeripherals();
5353

5454
// turn off 3.3v
5555
digitalWrite(RT9080_EN, LOW);

variants/lilygo_techo_card/TechoCardBoard.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,11 +87,11 @@ void TechoCardBoard::turnOffLeds() {
8787
}
8888
}
8989

90-
void TechoCardBoard::powerOff() {
90+
void TechoCardBoard::shutdownPeripherals() {
9191
nrf_gpio_cfg_sense_input(BUTTON_PIN, NRF_GPIO_PIN_PULLUP, NRF_GPIO_PIN_SENSE_LOW);
9292
turnOffLeds();
9393
digitalWrite(PIN_PWR_EN, LOW);
94-
NRF52Board::powerOff();
94+
NRF52Board::shutdownPeripherals();
9595
}
9696

9797
#endif

variants/lilygo_techo_card/TechoCardBoard.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ class TechoCardBoard : public NRF52BoardDCDC {
2828
return "LilyGo T-Echo Card";
2929
}
3030

31-
void powerOff() override;
31+
void shutdownPeripherals() override;
3232

3333
void toggleTorch();
3434
void turnOffLeds();

variants/lilygo_techo_lite/TechoBoard.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@ class TechoBoard : public NRF52BoardDCDC {
2121
return "LilyGo T-Echo Lite";
2222
}
2323

24-
void powerOff() override {
25-
NRF52Board::powerOff();
24+
void shutdownPeripherals() override {
25+
NRF52Board::shutdownPeripherals();
2626

2727
digitalWrite(PIN_VBAT_MEAS_EN, LOW);
2828
#ifdef LED_RED

0 commit comments

Comments
 (0)