Skip to content

Commit ee1e135

Browse files
authored
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.
1 parent 51a4be8 commit ee1e135

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

app/Kconfig

+1-1
Original file line numberDiff line numberDiff line change
@@ -500,7 +500,7 @@ config ZMK_SETTINGS_SAVE_DEBOUNCE
500500
endif
501501

502502
config ZMK_BATTERY_REPORT_INTERVAL
503-
depends on ZMK_BLE
503+
depends on ZMK_BATTERY_REPORTING
504504
int "Battery level report interval in seconds"
505505
default 60
506506

app/drivers/sensor/battery/Kconfig

+2
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ config ZMK_BATTERY_NRF_VDDH
1414
default $(dt_compat_enabled,$(DT_COMPAT_ZMK_BATTERY_NRF_VDDH))
1515
select ADC
1616
select ZMK_BATTERY
17+
depends on SENSOR
1718
help
1819
Enable ZMK nRF VDDH voltage driver for battery monitoring.
1920

@@ -22,5 +23,6 @@ config ZMK_BATTERY_VOLTAGE_DIVIDER
2223
default $(dt_compat_enabled,$(DT_COMPAT_ZMK_BATTERY_VOLTAGE_DIVIDER))
2324
select ADC
2425
select ZMK_BATTERY
26+
depends on SENSOR
2527
help
2628
Enable ZMK battery voltage divider driver for battery monitoring.

0 commit comments

Comments
 (0)