NicholasAStuart / myo-java

Java API for Thalmic's Myo Device
Apache License 2.0
41 stars 27 forks source link

Problems with the UnlockType #15

Closed zaagman closed 8 years ago

zaagman commented 8 years ago

Hey thank you very much for the libraries controlling the Myo. I'm doing a project creating sound from the movements of a dancer. Without your work I would not be able to pull it off personally.

I found an issue though. For me setting the LockType did not work properly. The UNLOCK_TIMED did not do anything and the UNLOCK_HOLD seems to work like UNLOCK_TIMED.

I created a workaround by changing the ENUM.

public enum UnlockType { UNLOCK_NULL, UNLOCK_TIMED, UNLOCK_HOLD }

For some reason this works for me. UNLOCK_TIMED and UNLOCK_HOLD both react properly now. Maybe something to look into?

Best, Maarten Zaagman

NicholasAStuart commented 8 years ago

@zaagman Which version of the library are you using? I'm not sure why what you suggested would work, but older versions of the code may have had a problem.