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

hecRegRemoteLock nicht auf 0 setzen #4118

Closed
wants to merge 2 commits into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 2 additions & 4 deletions charger/heidelberg-ec.go
Original file line number Diff line number Diff line change
Expand Up @@ -272,14 +272,12 @@ var _ api.Resurrector = (*HeidelbergEC)(nil)

// WakeUp implements the api.Resurrector interface
func (wb *HeidelbergEC) WakeUp() error {
// force status F by locking
err := wb.set(hecRegRemoteLock, 0)
// unlock the box to wakeUp
err := wb.set(hecRegRemoteLock, 1)
if err == nil {
// Always takes at least ~10 sec to return to normal operation
// after locking even if unlocking immediately.
wb.wakeup = true
// return to normal operation by unlocking after ~10 sec
err = wb.set(hecRegRemoteLock, 1)
}
return err
}