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

Bangle.js: setXYZPower #1971

Closed
gfwilliams opened this issue Jan 25, 2021 · 0 comments
Closed

Bangle.js: setXYZPower #1971

gfwilliams opened this issue Jan 25, 2021 · 0 comments

Comments

@gfwilliams
Copy link
Member

Currently apps/widgets can do Bangle.setXYZPower, but you have an issue if one requests power and one tells the device to shut off.

An easy solution would be Bangle.setXYZPower(isOn, "myappname") - then we just store a list of 'myappname's that require something on and as long as there's something in there we keep it on. It's also backwards compatible.

Alongside this, Bangle.getXYZPower() should be added too.

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

No branches or pull requests

1 participant