mirror of
https://github.com/zephyrproject-rtos/zephyr
synced 2025-09-01 13:22:36 +00:00
Annotate the calculation with type casts to force promotion to uint32_t and then cast back down to uint16_t for the return. This solves the issue with invalid voltage (mV) values being returned due to overflow during the conversion from the register value on the max17048 chip. Signed-off-by: Martin Calsyn <martin.calsyn@outcomex.com.au> |
||
---|---|---|
.. | ||
bq27z746 | ||
max17048 | ||
sbs_gauge | ||
CMakeLists.txt | ||
emul_fuel_gauge_syscall_handlers.c | ||
fuel_gauge_syscall_handlers.c | ||
Kconfig |