mirror of
https://github.com/weewx/weewx.git
synced 2026-04-19 00:56:54 -04:00
Fixed fousb problem under Python 3.
This commit is contained in:
@@ -1174,7 +1174,7 @@ class FineOffsetUSB(weewx.drivers.AbstractDevice):
|
||||
#==============================================================================
|
||||
|
||||
def _read_usb_block(self, address):
|
||||
addr1 = (address / 256) & 0xff
|
||||
addr1 = (address >> 8) & 0xff
|
||||
addr2 = address & 0xff
|
||||
self.devh.controlMsg(usb.TYPE_CLASS + usb.RECIP_INTERFACE,
|
||||
0x0000009,
|
||||
|
||||
Reference in New Issue
Block a user