Corrected small typos

This commit is contained in:
Foxi352 2016-11-28 16:39:57 +01:00
parent 5c88fde8d0
commit ee30484ce4

View File

@ -315,7 +315,7 @@ SmartHomeNGAccessory.prototype = {
} }
} else { } else {
var numericValue = 0; 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) { if (inverted) {
numericValue = 360 - value; numericValue = 360 - value;
} else { } else {
@ -508,7 +508,7 @@ SmartHomeNGAccessory.prototype = {
myService.addCharacteristic(Characteristic.Hue); // it's an optional myService.addCharacteristic(Characteristic.Hue); // it's an optional
this.bindCharacteristic(myService, Characteristic.Hue, "Angle", config.hue, inverted); this.bindCharacteristic(myService, Characteristic.Hue, "Angle", config.hue, inverted);
} }
// Brightness if available // Saturation if available
if (config.saturation) { if (config.saturation) {
this.log("["+ this.name +"] Lightbulb Saturation characteristic enabled"); this.log("["+ this.name +"] Lightbulb Saturation characteristic enabled");
myService.addCharacteristic(Characteristic.Saturation); // it's an optional myService.addCharacteristic(Characteristic.Saturation); // it's an optional