ext_power: add Kconfig for initial ext_power state

Adds a Kconfig setting for the default EXT_POWER status at initialization time. Previously it was always initialized to on if no saved value was present.
This commit is contained in:
Donald Gordon 2023-01-21 15:33:21 +13:00 committed by afiqzudinhadi
parent 954253c6f5
commit e1fc10651c
2 changed files with 21 additions and 3 deletions

View file

@ -435,6 +435,16 @@ config ZMK_GPIO_KEY_WAKEUP_TRIGGER
depends on DT_HAS_ZMK_GPIO_KEY_WAKEUP_TRIGGER_ENABLED && ZMK_PM_SOFT_OFF
# Power Management
if ZMK_EXT_POWER
config ZMK_EXT_POWER_START
bool "Enable external power output by default"
default y
#ZMK_EXT_POWER
endif
#Power Management
endmenu
menu "Combo options"