Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MicroBitAccelerometer: request an update before returning a gesture #477

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

joe2k01
Copy link

@joe2k01 joe2k01 commented Dec 20, 2020

I might have done something wrong but when I tried to call getGesture() in my code it would always return 0. Then I noticed that if getGesture got called right after a get[X,Y,Z] function it would return an actual gesture value.

	* Most of the other get* functions already request
	  an update before returning.
	* Withouth requesting an update the function
	  always returns 0.

Signed-off-by: Giuseppe Barillari <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant