Restore MeshPocket V2 C2 power mode on shutdown

This commit is contained in:
Quency-D committed 2026-11-20 16:30:37 +08:00
1 parent 2a324bd9c3
commit 7fe08cffb1
1 file changed
+1
@@ -31,6 +31,7 @@ bool HeltecMeshPocketV2Board::isUsbDataEnabled() const {
void HeltecMeshPocketV2Board::shutdownPeripherals() {
NRF52Board::shutdownPeripherals();
powerBank.end();
setUsbDataEnabled(false);
nrf_gpio_cfg_sense_input(PIN_USER_BTN, NRF_GPIO_PIN_PULLUP, NRF_GPIO_PIN_SENSE_LOW);
pinMode(PIN_9006_IO1, INPUT_PULLDOWN);
// A held-high IO1 must not immediately wake the board from SYSTEM OFF.