-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Which previously didn't prevent the board immediately sleeping again, meaning the USB stack didn't have long enough to enumerate and for usb_connected() to return true as a result thereby preventing further lightsleeps. Now we explicitly prevent all sleeps for a further 15s ("usb_nosleep_time") after detecting CHARGE_DET going low (indicating USB power connected) to give the USB stack time to enumerate, after which point usb_connected() takes over the responsibility for preventing lightsleep.
- Loading branch information
Showing
3 changed files
with
21 additions
and
19 deletions.
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
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
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