From 3049d0fedf1426a5b9d145483ae40bde2add49be Mon Sep 17 00:00:00 2001 From: ntoff Date: Sun, 12 Nov 2017 05:19:12 +1000 Subject: [PATCH] fix default fan speed slider position oops, forgot the last bit of the if else statement --- octoprint_fanspeedslider/static/js/fanslider.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/octoprint_fanspeedslider/static/js/fanslider.js b/octoprint_fanspeedslider/static/js/fanslider.js index 9d6940c..2e6b755 100644 --- a/octoprint_fanspeedslider/static/js/fanslider.js +++ b/octoprint_fanspeedslider/static/js/fanslider.js @@ -110,6 +110,9 @@ $(function() { else if (self.control.defaultFanSpeed() > self.control.maxFanSpeed()) { self.control.fanSpeed(self.control.maxFanSpeed()); } + else { + self.control.fanSpeed(self.control.defaultFanSpeed()); + } } //update settings in case user changes them, otherwise a refresh of the UI is required