fixup! fix: Disable battery sensors if reporting is off
This commit is contained in:
parent
afa6d65636
commit
d61b0070e8
1 changed files with 4 additions and 3 deletions
|
@ -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.
|
||||
|
|
Loading…
Add table
Reference in a new issue