Skip to content

drivers: sensor: battery: Type mismatch in battery_soc_lookup() #91920

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

GardeningStevie
Copy link
Contributor

linear_interpolate() expects int32_t as x parameter. So, voltage_uv must be of the same type.

@GardeningStevie GardeningStevie force-pushed the gardena/sc/upstream/drivers-sensor-battery-type-mismatch branch from 4bb30f8 to bc8ef70 Compare June 19, 2025 13:33
`linear_interpolate()` expects `int32_t` as `x` parameter.
So, `voltage_uv` must be of the same type.

Signed-off-by: Stefan Schwendeler <[email protected]>
@GardeningStevie GardeningStevie force-pushed the gardena/sc/upstream/drivers-sensor-battery-type-mismatch branch from 59ba748 to 30774b8 Compare June 19, 2025 13:43
Copy link

Please retry analysis of this Pull-Request directly on SonarQube Cloud

@GardeningStevie GardeningStevie marked this pull request as ready for review June 19, 2025 14:22
@github-actions github-actions bot added size: XS A PR changing only a single line of code area: Sensors Sensors labels Jun 19, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: Sensors Sensors size: XS A PR changing only a single line of code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants