fixup! fix: Disable battery sensors if reporting is off

This commit is contained in:
Cem Aksoylar 2023-07-15 13:51:27 -07:00
parent afa6d65636
commit d61b0070e8

View file

@ -6,7 +6,6 @@ DT_COMPAT_ZMK_BATTERY_VOLTAGE_DIVIDER := zmk,battery-voltage-divider
config ZMK_BATTERY
bool "ZMK battery monitoring"
depends on ZMK_BATTERY_REPORTING
help
Enable battery monitoring
@ -14,7 +13,8 @@ config ZMK_BATTERY_NRF_VDDH
bool
default $(dt_compat_enabled,$(DT_COMPAT_ZMK_BATTERY_NRF_VDDH))
select ADC
imply ZMK_BATTERY
select ZMK_BATTERY
depends on SENSOR
help
Enable ZMK nRF VDDH voltage driver for battery monitoring.
@ -22,6 +22,7 @@ config ZMK_BATTERY_VOLTAGE_DIVIDER
bool
default $(dt_compat_enabled,$(DT_COMPAT_ZMK_BATTERY_VOLTAGE_DIVIDER))
select ADC
imply ZMK_BATTERY
select ZMK_BATTERY
depends on SENSOR
help
Enable ZMK battery voltage divider driver for battery monitoring.