Set the default ChannelConfig range index to 0.
authorW. Trevor King <wking@drexel.edu>
Thu, 15 Mar 2012 15:08:51 +0000 (11:08 -0400)
committerW. Trevor King <wking@drexel.edu>
Thu, 15 Mar 2012 15:08:51 +0000 (11:08 -0400)
pypiezo/config.py

index 520ba13fc38f8e8ae95e92f519b7fcebdf7926a7..a2b8111f84831d0330c79cebe59a27202692b7be 100644 (file)
@@ -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.",