Skip to content
Commit fec7156b authored by Jordan Yates's avatar Jordan Yates Committed by Henrik Brix Andersen
Browse files

adc: current_sense_amplifier: reduce valid scaling range



Reduce the valid scaling range for the gain multipliers and dividers to
provide more headroom on int64_t overflows in the calculations. Take
advantage of this headroom to perform all multiplications before
divisions.

Signed-off-by: default avatarJordan Yates <jordan@embeint.com>
parent 4361c96c
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment