Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions USB/python/usb_1608FS.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 | \
Expand Down Expand Up @@ -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
Expand Down