Add amber as a named colour to blinkstick

This commit is contained in:
dceejay
2015-04-17 21:07:25 +01:00
parent 97d271be2c
commit 89dcdb2139
2 changed files with 2 additions and 1 deletions

View File

@@ -252,6 +252,7 @@ module.exports = function(RED) {
} else {
//Sanitize color value
node.color = msg.payload.toLowerCase().replace(/\s+/g,'');
if (node.color === "amber") { node.color = "#FFBF00"; }
}
if (Object.size(node.led) !== 0) {