Wattpilot: add 1p3p (#6099)

This commit is contained in:
Martin Buchleitner 2023-02-06 16:34:11 +01:00 • committed by GitHub
parent 8db3efb033
commit 40e1357c75
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -132,3 +132,14 @@ var _ api.Identifier = (*Wattpilot)(nil)
func (c *Wattpilot) Identify() (string, error) {
return c.api.GetRFID()
}
var _ api.PhaseSwitcher = (*Wattpilot)(nil)
// Phases1p3p implements the api.PhaseSwitcher interface
func (c *Wattpilot) Phases1p3p(phases int) error {
if phases == 3 {
phases = 2
}
return c.api.SetProperty("psm", phases)
}