diff --git a/src/components/readouts/ADCs.jl b/src/components/readouts/ADCs.jl index c97efd5055131e156df52fd8f64b26482708c02f..b4a6b7e932acc218f376da851b99b9f7f205dad3 100644 --- a/src/components/readouts/ADCs.jl +++ b/src/components/readouts/ADCs.jl @@ -58,8 +58,8 @@ resolution(adc::ADC) = adc.resolution function fixed(adc::ADC) # round nsamples during fixing - r = Int(round(value(resolution(adc)))) - n = Int(round(value(nsamples(adc)))) + r = Int(round(value(resolution(adc)), RoundNearest)) + n = Int(round(value(nsamples(adc)), RoundNearest)) if iszero(n) return ADC(0, NaN, NaN, NaN) end