From 8f415f7bb53af26bb6898f3aca570a61e82245df Mon Sep 17 00:00:00 2001 From: "W. Trevor King" Date: Thu, 15 Mar 2012 11:08:51 -0400 Subject: [PATCH] Set the default ChannelConfig range index to 0. --- pypiezo/config.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pypiezo/config.py b/pypiezo/config.py index 520ba13..a2b8111 100644 --- a/pypiezo/config.py +++ b/pypiezo/config.py @@ -56,7 +56,8 @@ class ChannelConfig (_config.Config): help="Channel's maximum bit value."), _config.IntegerSetting( name='range', - help="Channel's selected range index."), + help="Channel's selected range index.", + default=0), _config.ChoiceSetting( name='analog-reference', help="Channel's selected analog reference index.", -- 2.26.2