chore: fix phases byte order

This commit is contained in:
andig 2021-12-02 12:14:27 +01:00
parent 1be3025e0c
commit d538ec99f4

View file

@ -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
}