diff options
-rw-r--r-- | chip/it83xx/adc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/chip/it83xx/adc.c b/chip/it83xx/adc.c index c666fc4e88..7b08a8beb1 100644 --- a/chip/it83xx/adc.c +++ b/chip/it83xx/adc.c @@ -167,7 +167,7 @@ int adc_read_channel(enum adc_channel ch) else IT83XX_ADC_ADCDVSTS2 = (1 << (adc_ch - CHIP_ADC_CH13)); - mv = adc_raw_data * adc_channels[ch].factor_mul / + mv = (uint64_t)adc_raw_data * adc_channels[ch].factor_mul / adc_channels[ch].factor_div + adc_channels[ch].shift; valid = 1; |