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

Heidelberg: Fix locking #4117

Merged
merged 6 commits into from
Aug 23, 2022
Merged

Heidelberg: Fix locking #4117

merged 6 commits into from
Aug 23, 2022

Conversation

premultiply
Copy link
Member

Should fix #3596

@premultiply premultiply marked this pull request as ready for review August 15, 2022 13:46
charger/heidelberg-ec.go Outdated Show resolved Hide resolved
charger/heidelberg-ec.go Outdated Show resolved Hide resolved
@premultiply premultiply changed the title Heidelberg: Unlock on restart Heidelberg: Fix locking Aug 15, 2022
@andig andig added the devices Specific device support label Aug 15, 2022
@premultiply premultiply requested a review from andig August 16, 2022 18:24
@@ -131,6 +131,19 @@ func (wb *HeidelbergEC) Status() (api.ChargeStatus, error) {
case 9:
return api.StatusE, nil
case 10:
// ensure RemoteLock is disabled after wake-up
l, err := wb.conn.ReadInputRegisters(hecRegRemoteLock, 1)
Copy link
Member

Choose a reason for hiding this comment

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

Das brauchts doch nur beim Neustart und nicht ständig? Im Wakeup schaltest Du ja sonst immer frei- woher sollten da noch zusätzliche Locks kommen? Aber schadet vielleicht auch nichts...

Copy link
Member Author

Choose a reason for hiding this comment

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

Geht ja nur darum dass Falls die WB den Unlock - aus welchem Grund auch immer - nicht wirklich mitbekommen hat, hier nochmal entsperrt wird.

@premultiply
Copy link
Member Author

Rein?

@andig andig merged commit 0aa9b01 into master Aug 23, 2022
@andig andig deleted the bug/heidelberg-unlock branch August 23, 2022 07:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
devices Specific device support
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants