Bevan Weiss c0edfbc4ea
src: Current code produces warnings for possible value overflows. (#6665)
As the input values are uint8_t types, any shift may result in value loss.
Explicit promotion to the output type (uint32_t) keeps things safe.
Have also changed the int32_t in ads1220_read_adc to uint32_t, type
promotion and bit manipulation are a bit 'weird' on signed integers, so
keep it as an unsigned to align with following function call parameter type.
Have retained the prior explicit sign extension logic however.

Signed-off-by: Bevan Weiss <bevan.weiss@gmail.com>
2024-08-14 22:14:19 -04:00
..
2024-06-10 12:27:12 -04:00
2024-06-10 12:27:12 -04:00
2024-06-10 12:27:12 -04:00
2020-12-04 16:10:13 -05:00
2023-02-20 19:55:25 -05:00
2023-02-20 19:55:25 -05:00