forked from M-Labs/artiq
1
0
Fork 0

sampler: fix mistake in c591e7e3

This commit is contained in:
Sebastien Bourdeauducq 2023-01-15 12:26:08 +08:00
parent 248cd69673
commit 57e87c9717
1 changed files with 1 additions and 1 deletions

View File

@ -152,4 +152,4 @@ class Sampler:
for i in range(n): for i in range(n):
channel = i + 8 - len(data) channel = i + 8 - len(data)
gain = (self.gains >> (channel*2)) & 0b11 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)