Skip to content

Commit f86e04d

Browse files
committed
components/M5Unified: Fix M5.Power.getBatteryLevel always returns 0.
This issue occurs in StickC_PLUS2 and Cardputer. Signed-off-by: lbuque <[email protected]>
1 parent 1b9a591 commit f86e04d

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

m5stack/boards/sdkconfig.base

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ CONFIG_ETH_SPI_ETHERNET_DM9051=y
126126
# functions are in ROM. Note some newer chips (c2,c6) have "full" newlib
127127
# formatting in ROM instead and should override this, check
128128
# ESP_ROM_HAS_NEWLIB_NANO_FORMAT.
129-
CONFIG_NEWLIB_NANO_FORMAT=y
129+
CONFIG_NEWLIB_NANO_FORMAT=n
130130

131131
# IRAM/DRAM split protection is a memory protection feature on some parts
132132
# that support SOC_CPU_IDRAM_SPLIT_USING_PMP, eg. C2, C5, C6, H2

0 commit comments

Comments
 (0)