From 7fe08cffb1293484627c87c4816e73edeb4f96b8 Mon Sep 17 00:00:00 2001 From: Quency-D Date: Fri, 20 Nov 2026 16:30:37 +0800 Subject: [PATCH] Restore MeshPocket V2 C2 power mode on shutdown --- variants/heltec_meshpocket_v2/HeltecMeshPocketV2Board.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/variants/heltec_meshpocket_v2/HeltecMeshPocketV2Board.cpp b/variants/heltec_meshpocket_v2/HeltecMeshPocketV2Board.cpp index e523b8f4..b0e3c474 100644 --- a/variants/heltec_meshpocket_v2/HeltecMeshPocketV2Board.cpp +++ b/variants/heltec_meshpocket_v2/HeltecMeshPocketV2Board.cpp @@ -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.