From c7c2f521492f9075c99030a332ec69c1b18fc688 Mon Sep 17 00:00:00 2001 From: ntoff Date: Sat, 18 Nov 2017 05:01:52 +1000 Subject: [PATCH] add some comments clarify fan speeds are 0-100% not 0-255 pwm values --- octoprint_fanspeedslider/static/js/fanslider.js | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/octoprint_fanspeedslider/static/js/fanslider.js b/octoprint_fanspeedslider/static/js/fanslider.js index cb8eeb4..b6df059 100644 --- a/octoprint_fanspeedslider/static/js/fanslider.js +++ b/octoprint_fanspeedslider/static/js/fanslider.js @@ -12,12 +12,11 @@ $(function () { self.control = parameters[1]; self.loginState = parameters[2]; - //fanSpeed = ko.observable("0"); - self.settings.defaultFanSpeed = new ko.observable(100); - self.control.fanSpeed = new ko.observable(100); - self.settings.minFanSpeed = new ko.observable(0); - self.settings.maxFanSpeed = new ko.observable(100); - self.settings.notifyDelay = new ko.observable(4000); //time in milliseconds + self.settings.defaultFanSpeed = new ko.observable(100); //this, + self.control.fanSpeed = new ko.observable(100); //this, + self.settings.minFanSpeed = new ko.observable(0); //this, + self.settings.maxFanSpeed = new ko.observable(100); //and this are percents 0 - 100% + self.settings.notifyDelay = new ko.observable(4000); //time in milliseconds self.showNotify = function (self, options) { options.hide = true;