BQ274XX Sensors Driver - Fails with CONFIG_BQ274XX_LAZY_CONFIGURE #47458
Labels
area: Sensors
Sensors
bug
The issue is a bug, or the PR is fixing a bug
priority: low
Low impact/importance bug
Describe the bug
When using the BQ274XX Sensors driver, there is a kconfig CONFIG_BQ274XX_LAZY_CONFIGURE that allows the device not to be imitated until it's first use. I use this as the communication pull ups in the BQ274XX are disabled on boot (enabled in boot process however).
If CONFIG_BQ274XX_LAZY_CONFIGURE is set however, compilation fails as the following code references a bq274xx struct that doesn't exist. See lines 405-409 of ${zephyr}/drivers/sensor/bq274xx/bq274xx.c
To Reproduce
Steps to reproduce the behavior:
I'd have thought you should be able to compile the sample ${zephyr}/samples/sensor/bq274xx/ but with the CONFIG_BQ274XX_LAZY_CONFIGURE set to get the error
4. See error
Expected behavior
CONFIG_BQ274XX_LAZY_CONFIGURE should allow the BQ274XX not to be imitated until it's first use
Impact
Compilation failure
Logs and console output
Environment (please complete the following information):
The text was updated successfully, but these errors were encountered: