Disable sleep while in Paddle app#553
Closed
stoehraj wants to merge 1 commit intoInfiniTimeOrg:developfrom
Closed
Conversation
Paddle.cpp: Added systemTask to disable sleeping in the constructor and re-enable sleeping in the destructor. Reformatted constructor function header to match that of FlashLight.cpp due to added length. Paddle.h: Added include for SystemTask.h. Added SystemTask parameter to constructor function prototype and added a private SystemTask variable. DisplayApp.cpp: Added systemTask pointer to make_unique() function call.
Author
|
Problem mentioned in issue #398 |
Contributor
|
InfiniTime won't sleep while touching the screen anymore after #492 was merged, so this isn't necessarily needed anymore. |
|
I would still find this useful, as the screen will often timeout for me in the Paddle app, because I like my screen timeout set to 5 seconds. |
Contributor
|
It is true that the timeout should be longer than 5s while in the paddle game, but by disabling sleep altogether, there is the danger of forgetting to close it and the battery draining quickly. This is also an issue with Flashlight currently, and it should be fixed. There needs to be a more complete solution to this. Closing due to inactivity. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Paddle.cpp: Added systemTask to disable sleeping in the constructor and
re-enable sleeping in the destructor. Reformatted constructor function
header to match that of FlashLight.cpp due to added length.
Paddle.h: Added include for SystemTask.h. Added SystemTask parameter to
constructor function prototype and added a private SystemTask variable.
DisplayApp.cpp: Added systemTask pointer to make_unique() function call.