Skip to content

Commit

Permalink
Merge pull request #43 from splattner/fix_denon_powertoggle
Browse files Browse the repository at this point in the history
[DenonAVR] Fix Power toggle command
  • Loading branch information
splattner authored Oct 17, 2023
2 parents e2ae31c + 013d3f1 commit 1d97e99
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/denonavr/power.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,10 @@ func (d *DenonAVR) TurnOff() error {
func (d *DenonAVR) TogglePower() error {

if d.IsOn() {
return d.TurnOn()
return d.TurnOff()
}

return d.TurnOff()
return d.TurnOn()
}

func (d *DenonAVR) IsOn() bool {
Expand Down

0 comments on commit 1d97e99

Please sign in to comment.