Wattpilot: add 1p3p (#6099)
This commit is contained in:
parent
8db3efb033
commit
40e1357c75
1 changed files with 11 additions and 0 deletions
|
|
@ -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)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue