Commit acbf2fce authored by Federico Vaga's avatar Federico Vaga

Merge branch 'release/v4.0.3'

parents e260b717 b765bcf4
......@@ -6,17 +6,23 @@
Changelog
=========
4.0.2 - 2022-03-16
4.0.3 - 2022-03-17
==================
Bugfix
Fixed
------
- improve conversion accuracy
4.0.2 - 2022-03-16
==================
Fixed
-----
- configuration values overwritten by the library
- offset not converted from raw to uV on read
4.0.1 - 2022-02-11
==================
Bugfix
------
Fixed
-----
- zero offset convertion from microVolts to fmc-adc-100m raw values
4.0.0 - 2021-09-10
......
......@@ -493,7 +493,7 @@ static uint32_t __offset_raw_to_uv(uint32_t value_raw)
{
int32_t value_raw_s = (int32_t)value_raw;
return (value_raw_s * (ADC_100M14B4CHA_DAC_VREF_uV / 0x8000LL)) - ADC_100M14B4CHA_DAC_VREF_uV;
return ((value_raw_s * ADC_100M14B4CHA_DAC_VREF_uV) / 0x8000LL) - ADC_100M14B4CHA_DAC_VREF_uV;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment