From 927551a578c5c5e408fd0c2d8c7781f379938c4d Mon Sep 17 00:00:00 2001 From: Wei Liu Date: Thu, 6 Apr 2023 12:05:56 -0700 Subject: [PATCH] fixed a bug in snapadc.py: when 'self.ref=None', we shouldn't use lmx2581 for adc clock... --- src/snapadc.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/snapadc.py b/src/snapadc.py index 6214a90..ad2d80c 100644 --- a/src/snapadc.py +++ b/src/snapadc.py @@ -141,7 +141,7 @@ def __init__(self, host, device_name, device_info, initialize=False, **kwargs): # below is from hera_corr_f/blocks.py # Attach our own wrapping of LMX - if(self.ref == None): + if(self.ref is not None): self.lmx = LMX2581(host, 'lmx_ctrl', fosc=self.ref) self.name = 'SNAP_adc' self.clock_divide = 1