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

Handle suspend/wake events, fix buttons not being ignored after plug in #101

Merged
merged 1 commit into from
Sep 28, 2024

Conversation

ASleepyCat
Copy link
Collaborator

@ASleepyCat ASleepyCat commented Sep 28, 2024

Closes #99.

Now handles sleep/wake events.
Disables all processing and lights during sleep. The board can still respond to USB control events since they're handled in an interrupt, but all other USB reports will get ignored/won't be sent. TBH I'm a bit uncertain about this, so if this should be changed I'll happily do so.

I also renamed the disable_led field to disable_leds to make it consistent with our web config tool.

Also oops somehow broke the ignore_buttons check.

@ASleepyCat ASleepyCat requested a review from HWXLR8 September 28, 2024 07:59
Copy link
Owner

@HWXLR8 HWXLR8 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good. Thanks for the PR!

@HWXLR8 HWXLR8 merged commit fab041d into master Sep 28, 2024
2 checks passed
@HWXLR8 HWXLR8 deleted the handle-sleep-wake branch September 28, 2024 13:45
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.

Handle wake/sleep events
2 participants