calibration: set .num_arefs in CalibrationSetting._arefs_set.
authorW. Trevor King <wking@tremily.us>
Wed, 17 Oct 2012 17:07:23 +0000 (13:07 -0400)
committerW. Trevor King <wking@tremily.us>
Wed, 17 Oct 2012 17:07:23 +0000 (13:07 -0400)
pycomedi/calibration.pyx

index 7a7eb5f21dda6e590f1a949195a6fea81d6f77c4..67eed07ba69309caead052db90b1ccedf57613a7 100644 (file)
@@ -530,6 +530,7 @@ cdef class CalibrationSetting (object):
             self.setting.arefs[i] = x
         for i in range(length, _comedilib_h.CS_MAX_AREFS_LENGTH):
             self.setting.arefs[i] = 0
+        self.setting.num_arefs = length
     arefs = property(fget=_arefs_get, fset=_arefs_set)
 
     def _caldacs_get(self):