diff --git a/USB/python/usb_1608FS.py b/USB/python/usb_1608FS.py index 3596bf7..34d31d5 100755 --- a/USB/python/usb_1608FS.py +++ b/USB/python/usb_1608FS.py @@ -941,8 +941,8 @@ def SetCal(self, setting): This command sets the voltage on the CAL output. The output will be 0V at power up, and should be returned to 0 when not in use. - - setting: 0 = 0V, 1 = 2.5V + + setting: 0 = 0V, 1 = 0.625V, 2 = 1.25V, 3 = 2.5V, 4 = 5V """ request_type = libusb1.LIBUSB_ENDPOINT_OUT | \ libusb1.LIBUSB_TYPE_CLASS | \ @@ -1047,7 +1047,7 @@ def volts(self, gain, value): volt = value * 2.0 / 0x7fff elif gain == self.BP_1_25V: volt = value * 1.25 / 0x7fff - elif gain == self.BP_1_0V: + elif gain == self.BP_1_00V: volt = value * 1.00 / 0x7fff elif gain == self.BP_0_625V: volt = value * 0.625 / 0x7fff