From ee30484ce4c0c39bedc5ae7caf7e4067078c7d6d Mon Sep 17 00:00:00 2001 From: Foxi352 Date: Mon, 28 Nov 2016 16:39:57 +0100 Subject: [PATCH] Corrected small typos --- index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/index.js b/index.js index 98009bf..8ed2153 100755 --- a/index.js +++ b/index.js @@ -315,7 +315,7 @@ SmartHomeNGAccessory.prototype = { } } else { var numericValue = 0; - value = ( value>=0 ? (value<=360 ? value:360):0 ); //ensure range 0..100 + value = ( value>=0 ? (value<=360 ? value:360):0 ); //ensure range 0..360 if (inverted) { numericValue = 360 - value; } else { @@ -508,7 +508,7 @@ SmartHomeNGAccessory.prototype = { myService.addCharacteristic(Characteristic.Hue); // it's an optional this.bindCharacteristic(myService, Characteristic.Hue, "Angle", config.hue, inverted); } - // Brightness if available + // Saturation if available if (config.saturation) { this.log("["+ this.name +"] Lightbulb Saturation characteristic enabled"); myService.addCharacteristic(Characteristic.Saturation); // it's an optional