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
..
2023-06-08 12:59:30 -04:00
2024-06-17 12:45:07 -04:00
2024-06-17 12:45:07 -04:00
2024-03-02 18:47:16 -05:00
2024-06-17 12:45:07 -04:00
2024-06-17 12:45:07 -04:00
2024-04-03 22:53:09 -04:00
2024-06-17 12:45:07 -04:00
2024-06-10 12:27:12 -04:00
2024-06-17 12:45:07 -04:00
2020-10-30 14:04:12 -04:00
2024-08-08 22:45:12 -04:00
2019-01-13 11:03:30 -05:00
2021-11-06 18:47:44 -04:00
2020-12-04 16:10:13 -05:00
2019-07-05 20:01:07 -04:00
2024-06-10 12:27:12 -04:00
2024-06-10 12:27:12 -04:00
2019-08-22 13:06:44 -04:00
2021-05-07 13:53:47 -04:00
2021-06-09 18:58:35 -04:00
2020-12-10 12:06:26 -05:00
2023-06-07 20:55:46 -04:00
2023-06-07 20:55:46 -04:00
2023-06-08 12:59:30 -04:00
2023-06-07 20:55:46 -04:00
2022-12-16 22:46:47 -05:00
2019-03-17 20:56:25 -04:00
2024-07-31 21:22:33 -04:00
2021-07-04 10:11:02 -04:00
2021-07-04 10:11:02 -04:00
2024-07-31 21:22:33 -04:00
2020-11-05 11:40:34 -05:00
2021-04-30 11:40:37 -04:00
2020-12-04 16:10:13 -05:00
2021-11-09 20:20:24 -05:00
2023-02-20 19:55:25 -05:00
2023-02-20 19:55:25 -05:00
2024-08-14 22:14:19 -04:00
2024-01-19 11:55:15 -05:00
2024-01-19 11:55:15 -05:00
2024-01-19 11:55:15 -05:00
2024-06-10 12:27:12 -04:00
2024-08-14 22:14:19 -04:00
2024-08-14 22:14:19 -04:00
2024-01-19 11:55:15 -05:00
2024-01-19 11:55:15 -05:00
2019-08-17 13:49:03 -04:00
2019-02-13 11:52:20 -05:00
2023-06-08 12:59:30 -04:00
2022-03-29 20:34:46 -04:00
2021-11-04 12:06:27 -04:00
2021-06-09 18:58:35 -04:00
2022-09-23 11:56:20 -04:00
2020-10-30 14:04:08 -04:00
2021-06-09 18:58:35 -04:00
2021-06-09 18:58:35 -04:00