From c10ad0d0c2f7af8c69e9735e8f967e95f6003046 Mon Sep 17 00:00:00 2001 From: Dan White Date: Wed, 17 Oct 2012 00:01:48 -0500 Subject: [PATCH] yaml dump likes lists instead of tuples --- python-lib/usbio.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/python-lib/usbio.py b/python-lib/usbio.py index 49ea228..df14ebf 100644 --- a/python-lib/usbio.py +++ b/python-lib/usbio.py @@ -1864,8 +1864,8 @@ class DigiReg(AD524x): """Return a dict of settings which can be passed to constructor to restore the state.""" s = super(DigiReg, self).dump_config() - s['va_range'] = (self.va_min, self.va_max) - s['vb_range'] = (self.vb_min, self.vb_max) + s['va_range'] = [self.va_min, self.va_max] + s['vb_range'] = [self.vb_min, self.vb_max] s['aliases'] = self.aliases # saved but not used to restore via __init__() s['va'] = self.va -- 2.25.1