ChargeX: fix phase state register read length (#27243)
This commit is contained in:
parent
14c298c7ad
commit
d4d227ef63
1 changed files with 1 additions and 1 deletions
|
|
@ -115,7 +115,7 @@ func (wb *ChargeX) moduleReg(offset uint16) uint16 {
|
|||
// setCurrent writes the current limit in Amperes
|
||||
func (wb *ChargeX) setCurrent(current float64) error {
|
||||
// Read module state to determine charging mode (1p or 3p)
|
||||
b, err := wb.conn.ReadHoldingRegisters(wb.moduleReg(chargexRegModuleState), 1)
|
||||
b, err := wb.conn.ReadHoldingRegisters(wb.moduleReg(chargexRegModuleState), 2)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue