mirror of
				https://github.com/node-red/node-red-nodes.git
				synced 2025-03-01 10:37:43 +00:00 
			
		
		
		
	Add amber as a named colour to blinkstick
This commit is contained in:
		@@ -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) {
 | 
			
		||||
 
 | 
			
		||||
@@ -1,6 +1,6 @@
 | 
			
		||||
{
 | 
			
		||||
    "name"          : "node-red-node-blinkstick",
 | 
			
		||||
    "version"       : "0.1.6",
 | 
			
		||||
    "version"       : "0.1.7",
 | 
			
		||||
    "description"   : "A Node-RED node to control a Blinkstick",
 | 
			
		||||
    "dependencies"  : {
 | 
			
		||||
        "blinkstick"   : "1.1.*"
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user