mirror of
https://github.com/safijari/openpuck.git
synced 2026-11-03 22:30:22 +00:00
[PR #247] [CLOSED] Fix controllers not shutting off on host sleep in puck/lizard modes #257
Labels
No labels
pull-request
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
safijari/openpuck#257
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/safijari/openpuck/pull/247
Author: @Copilot
Created: 8/22/2026
Status: ❌ Closed
Base:
main← Head:copilot/246-feature-update📝 Commits (1)
01a83e3Fix early return in hapticTask skipping host-sleep controller shutdown📊 Changes
1 file changed (+30 additions, -32 deletions)
View changed files
📝
OpenPuck/haptics.cpp(+30 -32)📄 Description
hapticTask()had an earlyreturnin theg_lizKeepblock that fired whenever the active mode was a puck mode (Steam/Lizard). This silently skipped everything below it — including theSUSPEND_OFF_MShost-sleep detection that sends the "off!" shutdown command to controllers.Change
Replace the early
returnwith a conditional that guards only the id9 steering relay loop:This also restores the per-slot link-edge detector and stuck-rumble watchdog for puck modes, which were equally affected by the early exit.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.