nrf52_variants: override shutdownPeripherals instead of powerOff for TechoLite, TInpulse and TechoBoard (protect the gate)
This commit is contained in:
1 parent
3489309e08
commit
dccbdd4a02
4 files changed
+7
-7
No files matched your search
@@ -87,11 +87,11 @@ void TechoCardBoard::turnOffLeds() {
|
||||
}
|
||||
}
|
||||
|
||||
void TechoCardBoard::powerOff() {
|
||||
void TechoCardBoard::shutdownPeripherals() {
|
||||
nrf_gpio_cfg_sense_input(BUTTON_PIN, NRF_GPIO_PIN_PULLUP, NRF_GPIO_PIN_SENSE_LOW);
|
||||
turnOffLeds();
|
||||
digitalWrite(PIN_PWR_EN, LOW);
|
||||
NRF52Board::powerOff();
|
||||
NRF52Board::shutdownPeripherals();
|
||||
}
|
||||
|
||||
#endif
|
||||
Reference in new issue
Block a user