-
Notifications
You must be signed in to change notification settings - Fork 4
Open
Description
import pygmc
gc = pygmc.connect()
ver = gc.get_version()
print(ver)
cpm = gc.get_cpm()
print(gc.get_cpm())
usvh = gc.get_usv_h()
print(usvh)
returns
14
0.09102730819245773
However:
import pygmc
gc = pygmc.connect()
cpm = gc.get_cpm()
print(gc.get_cpm())
usvh = gc.get_usv_h()
print(usvh)
returns:
Traceback (most recent call last):
File "/home/mario/Documents/logiciels/gmc/pyGMC/pygmc/gmc320s.py", line 16, in <module>
cpm = gc.get_cpm()
File "/home/mario/Documents/logiciels/gmc/pyGMC/pygmc/pygmc/devices/device_rfc1201.py", line 95, in get_cpm
count = struct.unpack(">H", result)[0]
~~~~~~~~~~~~~^^^^^^^^^^^^^^
struct.error: unpack requires a buffer of 2 bytes
I am running pygmc from git, could it be a problem with my environment?
Metadata
Metadata
Assignees
Labels
No labels