fix: Proper battery sensor Kconfig dependencies.

Properly make the battery sensor Kconfig symbols depend
on `SENSOR` config, and minor battery reporting Kconfig
symbol dependency fix.
This commit is contained in:
Cem Aksoylar 2023-07-18 23:21:09 -07:00 committed by GitHub
parent 51a4be8935
commit ee1e135104
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 1 deletions

View file

@ -500,7 +500,7 @@ config ZMK_SETTINGS_SAVE_DEBOUNCE
endif
config ZMK_BATTERY_REPORT_INTERVAL
depends on ZMK_BLE
depends on ZMK_BATTERY_REPORTING
int "Battery level report interval in seconds"
default 60

View file

@ -14,6 +14,7 @@ config ZMK_BATTERY_NRF_VDDH
default $(dt_compat_enabled,$(DT_COMPAT_ZMK_BATTERY_NRF_VDDH))
select ADC
select ZMK_BATTERY
depends on SENSOR
help
Enable ZMK nRF VDDH voltage driver for battery monitoring.
@ -22,5 +23,6 @@ config ZMK_BATTERY_VOLTAGE_DIVIDER
default $(dt_compat_enabled,$(DT_COMPAT_ZMK_BATTERY_VOLTAGE_DIVIDER))
select ADC
select ZMK_BATTERY
depends on SENSOR
help
Enable ZMK battery voltage divider driver for battery monitoring.