pavel-a / usb-relay-hid

Software for USB-connected relays with HID interface. See the WIKI for more info.
http://vusb.wikidot.com/project:driver-less-usb-relays-hid-interface
242 stars 105 forks source link

error with python 3.8 #34

Open ankitkgupta09 opened 4 years ago

ankitkgupta09 commented 4 years ago

I am using https://github.com/pavel-a/usb-relay-hid/blob/master/Test/test2m.py implementation with python 3.8 same code works fine with Python 2.8, which failed with error "ctypes.ArgumentError: argument 1: <class 'OverflowError'>: int too long to convert" Any workaround or suggestion to fix this issue?

markusc90 commented 4 years ago

It looks like there is an error on line 68.

("usb_relay_device_close_all_relay_channel", 'e', None)

should actually be changed to

("usb_relay_device_close_all_relay_channel", 'e', 'h')

kevin-zsj commented 2 years ago

It looks like there is an error on line 68.

("usb_relay_device_close_all_relay_channel", 'e', None)

should actually be changed to

("usb_relay_device_close_all_relay_channel", 'e', 'h')

Thank you very mach, it worked.