From 5dc813fb7bfc0d6bd98675ab07b139dbf52fecd0 Mon Sep 17 00:00:00 2001 From: ntoff Date: Sat, 17 Nov 2018 11:41:55 +1000 Subject: [PATCH] add init min and max pwm --- octoprint_fanspeedslider/__init__.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/octoprint_fanspeedslider/__init__.py b/octoprint_fanspeedslider/__init__.py index 89c8328..7524879 100644 --- a/octoprint_fanspeedslider/__init__.py +++ b/octoprint_fanspeedslider/__init__.py @@ -9,6 +9,10 @@ class FanSliderPlugin(octoprint.plugin.StartupPlugin, octoprint.plugin.TemplatePlugin, octoprint.plugin.SettingsPlugin, octoprint.plugin.AssetPlugin): + + def __init__(self): + self.minPWM=0, + self.maxPWM=255 def on_after_startup(self): self.get_settings_updates()