Vestel: fix failsafe register type
This commit is contained in:
parent
e9b345af6e
commit
b8fcdbf1e2
1 changed files with 1 additions and 1 deletions
|
|
@ -97,7 +97,7 @@ func NewVestel(uri string, id uint8) (*Vestel, error) {
|
|||
}
|
||||
|
||||
// get failsafe timeout from charger
|
||||
b, err := wb.conn.ReadInputRegisters(vestelRegFailsafeTimeout, 1)
|
||||
b, err := wb.conn.ReadHoldingRegisters(vestelRegFailsafeTimeout, 1)
|
||||
if err != nil {
|
||||
return nil, fmt.Errorf("failsafe timeout: %w", err)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue