Skip to content

Conversation

faxe1008
Copy link
Contributor

Adds a calibrate property to the voltage divider sensor, which can be disabled, in case the underlying ADC driver does not support calibration.

Encountered this issue while using the esp32,adc
https://github.com/zephyrproject-rtos/zephyr/blob/main/drivers/adc/adc_esp32.c#L407

ubieda
ubieda previously approved these changes Sep 24, 2025
@faxe1008
Copy link
Contributor Author

Had to fix the device binding (boolean instead of bool 🤦 )

@ubieda
Copy link
Member

ubieda commented Sep 26, 2025

Adds a calibrate property to the voltage divider sensor,
which can be disabled, in case the underlying ADC driver
does not support calibration.

I see this PR shifted towards skipping calibration instead. I wonder the rationale and if valid, the commit message should be updated.

@faxe1008
Copy link
Contributor Author

True the commit message needs to be changed. Rationale is that you can not default a binding property to true.

Adds a skip-calibration property to the voltage divider sensor,
which can be enabled, in case the underlying ADC driver
does not support calibration.

Signed-off-by: Fabian Blatz <[email protected]>
Copy link

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants