Bugfix: 'new duty' instead of second 'new freq'.
authorBenjamin Braatz <benjamin.braatz@graph-it.com>
Tue, 27 Jul 2021 13:29:41 +0000 (15:29 +0200)
committerBenjamin Braatz <benjamin.braatz@graph-it.com>
Tue, 27 Jul 2021 13:29:41 +0000 (15:29 +0200)
controlpi_plugins/gpio.py

index ae38041919b40e15e3e015c14e43f01522d031d5..8f842a46b6d4b7876094349f18e7837867d77106 100644 (file)
@@ -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',