这是indexloc提供的服务,不要输入任何密码
Skip to content

Conversation

@dkramer95
Copy link
Contributor

Fixes #201

@tomty89
Copy link
Contributor

tomty89 commented Jul 30, 2018

Wouldn't this just make termux-torch off a no-op?

@dkramer95
Copy link
Contributor Author

@tomty89 termux-torch off is still used to turn off the LED only if it is on currently, otherwise it doesn't anything. Termux-Torch isn't a "true toggle" that automatically goes between states, the user is still responsible for specifying on or off... However, it could be implemented to be that way. Since this PR stores the state, it could be used to determine if the LED should be on or not.

@tomty89
Copy link
Contributor

tomty89 commented Jul 30, 2018

What I mean is isEnabled would be set to false every time the API is called?

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.

2 participants