chore: error handling in checkStation method (#33066)

This commit is contained in:
Michael Geers 2026-08-22 09:48:44 +02:00 • committed by GitHub
parent bbb7d704f6
commit 6e121c778f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -361,6 +361,10 @@ func (wb *DaheimLaden) getPhases() (int, error) {
}
func (wb *DaheimLaden) checkStation() error {
// first call for fw init
if _, err := wb.conn.ReadHoldingRegisters(dlRegEvseMaxCurrent, 22); err != nil {
return err
}
b, err := wb.conn.ReadHoldingRegisters(dlRegEvseMaxCurrent, 22)
if err != nil {
return api.ErrSponsorRequired