From 2ec96154f60d1e7ed67d62e6d4dc2950c9e0e874 Mon Sep 17 00:00:00 2001 From: Benjamin Braatz Date: Tue, 27 Jul 2021 15:29:41 +0200 Subject: [PATCH] Bugfix: 'new duty' instead of second 'new freq'. --- controlpi_plugins/gpio.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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', -- 2.34.1