running test_myo on brand new device no longer causes error #8
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
I have a brand new Myo. I ran test_myo.py on it and got the following output:
Start Myo for Linux
Find Myo device...
Connected.
Firmware version: 1.0.2.2
Device name: Myo
Finished.
Traceback (most recent call last):
File "test_myo.py", line 30, in
main()
File "test_myo.py", line 19, in main
myo.run()
File "../lib/myo.py", line 51, in run
self.ble.receive_packet(timeout)
File "../lib/ble.py", line 23, in receive_packet
self.notify_event(packet)
File "../lib/ble.py", line 49, in notify_event
listener.handle_data(p)
File "../lib/device_listener.py", line 12, in handle_data
data_type, value, address, _, _, _ = unpack('6B', payload)
File "../lib/utilities.py", line 7, in unpack
return struct.unpack('<' + fmt, *args)
struct.error: unpack requires a string argument of length 6
Upgrading my firmware fixed the error and all was well, but the error was pretty frustrating.