chore: clarify heidelbridge
This commit is contained in:
parent
6ead46d97f
commit
552e8a9d78
1 changed files with 4 additions and 1 deletions
|
|
@ -93,7 +93,10 @@ func NewDaheimLaden(ctx context.Context, uri string, id uint8, phases bool) (api
|
|||
}
|
||||
|
||||
c, err := conn.ReadHoldingRegisters(dlRegStationId, 16)
|
||||
if s, _ := utf16BEBytesAsString(c); err != nil || s == "" {
|
||||
if s, _ := utf16BEBytesAsString(c); err != nil || s == "" || s == "heidelbridge" {
|
||||
if s == "heidelbridge" {
|
||||
return nil, fmt.Errorf("heidelbridge detected: %w", api.ErrSponsorRequired)
|
||||
}
|
||||
return nil, api.ErrSponsorRequired
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue