Skip to content

Commit

Permalink
fix saving display duty cycle
Browse files Browse the repository at this point in the history
  • Loading branch information
kizniche committed Oct 2, 2024
1 parent 382e3e8 commit 86288ca
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions mycodo/outputs/pwm_rpi_gpio.py
Original file line number Diff line number Diff line change
Expand Up @@ -247,6 +247,7 @@ def output_switch(self, state, output_type=None, amount=None, output_channel=Non
amount = 0

self.pwm_output.ChangeDutyCycle(amount)
self.duty_cycle = amount

self.logger.debug("Duty cycle set to {dc:.2f} %".format(dc=amount))

Expand Down

0 comments on commit 86288ca

Please sign in to comment.