-
Notifications
You must be signed in to change notification settings - Fork 13.3k
Return error in class deepSleep() when max sleeptime is exceeded #4936
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
Open
Marc-Vreeburg
wants to merge
26
commits into
esp8266:master
Choose a base branch
from
Marc-Vreeburg:patch-1
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
26 commits
Select commit
Hold shift + click to select a range
37b8fa1
Check max sleeptime in class deepSleep()
Marc-Vreeburg c67c733
Update Esp.h
Marc-Vreeburg ed9967d
Merge branch 'master' into patch-1
devyte 270da15
Merge branch 'master' into patch-1
Marc-Vreeburg 0d0dd7b
Update Esp.cpp
Marc-Vreeburg a86f817
Update Esp.cpp
Marc-Vreeburg 89854fc
Update Esp.cpp
Marc-Vreeburg fda08a6
Update Esp.cpp
Marc-Vreeburg d58f66a
Merge branch 'master' into patch-1
devyte 609869f
Merge branch 'master' into patch-1
devyte 8e270ac
Merge branch 'master' into patch-1
earlephilhower 0c3b3e6
Update Esp.cpp
Marc-Vreeburg d0c16b5
Update Esp.h
Marc-Vreeburg b5b218a
Update Esp.cpp
Marc-Vreeburg 5e5f13e
Merge branch 'master' into patch-1
earlephilhower 033d5ef
Update Esp.cpp
Marc-Vreeburg ac538c2
Update Esp.cpp
Marc-Vreeburg fada2f6
Update Esp.cpp
Marc-Vreeburg cebeafc
Merge branch 'master' into patch-1
Marc-Vreeburg 39a2121
Update Esp.h
Marc-Vreeburg 24bb46d
Update Esp.cpp
Marc-Vreeburg 26021c1
Update Esp.h
Marc-Vreeburg a8359f5
Merge branch 'master' into patch-1
Marc-Vreeburg 364f341
Update Esp.cpp
Marc-Vreeburg eab0b4d
Update Esp.cpp
Marc-Vreeburg dfdb0dc
Merge branch 'master' into patch-1
d-a-v File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains 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
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hate to dogpile here, but if you do find out that
deepSleepMax()
doesn't really work and need to derate by 5% or whatever, please use that # to compare and notdeepSleepMax()
in thisif
condition. Otherwise someone will pass in, say,deepSleepMax() - 1
which won't work but which won't be caught by this check.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would it also be wise to increasingly loop the whole function until users's
time_us
is reached ?