From e12f5fce8cf69c0ecf77d24a0ef36459ceefecdb Mon Sep 17 00:00:00 2001 From: liquidraver <504870+liquidraver@users.noreply.github.com> Date: Sat, 4 Jul 2026 11:26:01 +0200 Subject: [PATCH] heltec v4 battery reading fix --- zephcore/boards/esp32/heltec_wifi_lora32_v4/board.overlay | 2 +- zephcore/boards/esp32/heltec_wifi_lora32_v43/board.overlay | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/zephcore/boards/esp32/heltec_wifi_lora32_v4/board.overlay b/zephcore/boards/esp32/heltec_wifi_lora32_v4/board.overlay index e3a8758..8063643 100644 --- a/zephcore/boards/esp32/heltec_wifi_lora32_v4/board.overlay +++ b/zephcore/boards/esp32/heltec_wifi_lora32_v4/board.overlay @@ -40,7 +40,7 @@ vbat_enable: vbat-enable { compatible = "regulator-fixed"; regulator-name = "vbat-enable"; - enable-gpios = <&gpio1 5 GPIO_ACTIVE_LOW>; /* GPIO37 = gpio1 pin 5 */ + enable-gpios = <&gpio1 5 GPIO_ACTIVE_HIGH>; /* GPIO37 = gpio1 pin 5, HIGH enables (V4/V4.3) */ }; /* Button chain — same mapping as RAK4631 / WisMesh Pocket (rak4631/board.overlay). */ diff --git a/zephcore/boards/esp32/heltec_wifi_lora32_v43/board.overlay b/zephcore/boards/esp32/heltec_wifi_lora32_v43/board.overlay index 3b1dfa6..7e49c2e 100644 --- a/zephcore/boards/esp32/heltec_wifi_lora32_v43/board.overlay +++ b/zephcore/boards/esp32/heltec_wifi_lora32_v43/board.overlay @@ -40,7 +40,7 @@ vbat_enable: vbat-enable { compatible = "regulator-fixed"; regulator-name = "vbat-enable"; - enable-gpios = <&gpio1 5 GPIO_ACTIVE_LOW>; /* GPIO37 = gpio1 pin 5 */ + enable-gpios = <&gpio1 5 GPIO_ACTIVE_HIGH>; /* GPIO37 = gpio1 pin 5, HIGH enables (V4/V4.3) */ }; /* Button chain — same mapping as RAK4631 / WisMesh Pocket (rak4631/board.overlay). */