add init min and max pwm

This commit is contained in:
ntoff 2018-11-17 11:41:55 +10:00
parent 2a779c9489
commit 5dc813fb7b

View File

@ -10,6 +10,10 @@ class FanSliderPlugin(octoprint.plugin.StartupPlugin,
octoprint.plugin.SettingsPlugin,
octoprint.plugin.AssetPlugin):
def __init__(self):
self.minPWM=0,
self.maxPWM=255
def on_after_startup(self):
self.get_settings_updates()