diff options
author | Peter Johanson <[email protected]> | 2023-04-18 07:14:18 +0000 |
---|---|---|
committer | Pete Johanson <[email protected]> | 2023-06-18 20:45:06 -0600 |
commit | d781ec795b9d9e053ce71c30450ba2b979eab43b (patch) | |
tree | f1db33abcd8c15a8aa1a07849e393cdb83aede28 /app/Kconfig | |
parent | f8aaaff556e1c43c6646ea1c1ee7faa2907cdf51 (diff) | |
download | zmk-d781ec795b9d9e053ce71c30450ba2b979eab43b.tar.gz zmk-d781ec795b9d9e053ce71c30450ba2b979eab43b.zip |
refactor(bluetooth): Add battery reporting config.
* Add dedicated battery reporting Kconfig that is `imply`d by
enabling ZMK_BLE.
Diffstat (limited to 'app/Kconfig')
-rw-r--r-- | app/Kconfig | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/app/Kconfig b/app/Kconfig index a54ad38967..9c0606b02f 100644 --- a/app/Kconfig +++ b/app/Kconfig @@ -114,9 +114,9 @@ menuconfig ZMK_BLE select BT_SMP_APP_PAIRING_ACCEPT select BT_PERIPHERAL select BT_DIS - select BT_BAS select BT_SETTINGS select SETTINGS + imply ZMK_BATTERY_REPORTING if ZMK_BLE @@ -322,6 +322,12 @@ endmenu menu "Power Management" +config ZMK_BATTERY_REPORTING + bool "Battery level detection/reporting" + default n + select SENSOR + select BT_BAS if ZMK_BLE + config ZMK_IDLE_TIMEOUT int "Milliseconds of inactivity before entering idle state (OLED shutoff, etc)" default 30000 |