From: Benjamin Braatz Date: Tue, 27 Jul 2021 13:29:41 +0000 (+0200) Subject: Bugfix: 'new duty' instead of second 'new freq'. X-Git-Url: http://git.graph-it.com/?a=commitdiff_plain;h=2ec96154f60d1e7ed67d62e6d4dc2950c9e0e874;p=graphit%2Fcontrolpi-pinio.git Bugfix: 'new duty' instead of second 'new freq'. --- diff --git a/controlpi_plugins/gpio.py b/controlpi_plugins/gpio.py index ae38041..8f842a4 100644 --- a/controlpi_plugins/gpio.py +++ b/controlpi_plugins/gpio.py @@ -205,8 +205,8 @@ class PWMPin(BasePlugin): 'minimum': 0, 'maximum': 125000000}}), MessageTemplate({'target': {'const': self.name}, - 'command': {'const': 'set freq'}, - 'new freq': {'type': 'integer', + 'command': {'const': 'set duty'}, + 'new duty': {'type': 'integer', 'minimum': 0, 'maximum': 1000000}})] self.bus.register(self.name, 'PWMPin',