Skip to content

Commit

Permalink
fixup! fix: Disable battery sensors if reporting is off
Browse files Browse the repository at this point in the history
  • Loading branch information
caksoylar committed Jul 15, 2023
1 parent afa6d65 commit d61b007
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions app/drivers/sensor/battery/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -6,22 +6,23 @@ 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

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.

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.

0 comments on commit d61b007

Please sign in to comment.