From 326cce376e310e9b7c21a3b465cbe26c96fe7d5a Mon Sep 17 00:00:00 2001 From: Dan White Date: Wed, 17 Oct 2012 00:00:17 -0500 Subject: [PATCH] bugfix: save dac config --- python-lib/devboard.py | 4 ++-- python-lib/usbio.py | 3 +-- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/python-lib/devboard.py b/python-lib/devboard.py index 473fe6b..728581a 100644 --- a/python-lib/devboard.py +++ b/python-lib/devboard.py @@ -137,6 +137,8 @@ def dump_config(): s['vatoi'] = vatoi.dump_config() s['v430'] = v430.dump_config() s['ibias'] = ibias.dump_config() + # signal generator + s['dac'] = dac.dump_config() # interface busses s['spi0'] = spi0.dump_config() s['spi1'] = spi1.dump_config() @@ -266,8 +268,6 @@ def load_config(name): else: cfg = yaml.load(open(name, 'rb')) - print cfg - ########################################################################## # Setup FTDI serial ports spi0 = usbio.SPI(**cfg['spi0']) diff --git a/python-lib/usbio.py b/python-lib/usbio.py index a91e821..49ea228 100644 --- a/python-lib/usbio.py +++ b/python-lib/usbio.py @@ -457,7 +457,6 @@ class SPI(object): states (idle mode). If audit_cs==False, allows setting the output state of the configured chip-select pins. """ - print pinstate, pindir if pindir is not None: self._pindir = pindir #we are changing pin directions, audit them @@ -477,7 +476,7 @@ class SPI(object): else: self._pinstate = pinstate - print 'set pins: %02x, %02x' % (self._pinstate, self._pindir) + #print 'set pins: %02x, %02x' % (self._pinstate, self._pindir) cmd = chr(self.ftdi.SET_BITS_LOW) + chr(self._pinstate) + chr(self._pindir) self._raw_write(cmd) -- 2.25.1