You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Traceback (most recent call last):
File "tuning.py", line 197, in <module>
main()
File "tuning.py", line 181, in main
print('{:24} {}'.format(name, dev.read(name)))
File "tuning.py", line 109, in read
response = struct.unpack(b'ii', response.tostring())
AttributeError: 'array.array' object has no attribute 'tostring'
Running tuning.py gives me this error.
Solved it by changing this line
response = struct.unpack(b'ii', response.tostring())
to this
response = struct.unpack(b'ii', response)
The text was updated successfully, but these errors were encountered: