From 287e55c08a58bcf36ca944cd7e86e1df55c87c61 Mon Sep 17 00:00:00 2001 From: Sebastien Bourdeauducq Date: Sun, 15 Jan 2023 12:26:08 +0800 Subject: [PATCH] sampler: fix mistake in c591e7e3 --- artiq/coredevice/sampler.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/artiq/coredevice/sampler.py b/artiq/coredevice/sampler.py index c0a7329ff..15372a7e1 100644 --- a/artiq/coredevice/sampler.py +++ b/artiq/coredevice/sampler.py @@ -164,4 +164,4 @@ class Sampler: for i in range(n): channel = i + 8 - len(data) gain = (self.gains >> (channel*2)) & 0b11 - data[i] = adc_mu_to_volt(adc_data[i], gain, self.revision) + data[i] = adc_mu_to_volt(adc_data[i], gain, self.corrected_fs)