chore: fix phases byte order
This commit is contained in:
parent
1be3025e0c
commit
d538ec99f4
1 changed files with 1 additions and 1 deletions
|
|
@ -184,7 +184,7 @@ var _ api.ChargePhases = (*Alfen)(nil)
|
|||
|
||||
// Phases1p3p implements the api.ChargePhases interface
|
||||
func (c *Alfen) Phases1p3p(phases int) error {
|
||||
_, err := c.conn.WriteSingleRegister(alfenRegPhases, uint16(phases<<8))
|
||||
_, err := c.conn.WriteSingleRegister(alfenRegPhases, uint16(phases))
|
||||
return err
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue