From fb3534bf4f94882a90a59b040c9b1b3a32a3cfa7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=B4me=20Carretero?= Date: Thu, 15 Aug 2024 00:17:41 -0400 Subject: [PATCH 1/2] USB: 1608FS: fixup typso in 1V scale --- USB/python/usb_1608FS.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/USB/python/usb_1608FS.py b/USB/python/usb_1608FS.py index 3596bf7..126b9c6 100755 --- a/USB/python/usb_1608FS.py +++ b/USB/python/usb_1608FS.py @@ -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 From e763a8f5d156d48d88271dac55f13bf870aed237 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=B4me=20Carretero?= Date: Thu, 15 Aug 2024 00:18:14 -0400 Subject: [PATCH 2/2] USB: 1608FS: document more CAL output magic values --- USB/python/usb_1608FS.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/USB/python/usb_1608FS.py b/USB/python/usb_1608FS.py index 126b9c6..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 | \