startup tweak for Blink1 node

This commit is contained in:
Dave C-J 2014-02-24 21:12:20 +00:00
parent f7cec16f4f
commit e0c8801d53
1 changed files with 1 additions and 1 deletions

View File

@ -18,7 +18,7 @@ var RED = require(process.env.NODE_RED_HOME+"/red/red");
var Blink1 = require("node-blink1"); var Blink1 = require("node-blink1");
// create a single global blink1 object // create a single global blink1 object
// all blink1 nodes affect the same (single) led // all blink1 nodes affect the same (single) led
var blink1 = blink1 || new Blink1.Blink1(); var blink1 = null;
function Blink1Node(n) { function Blink1Node(n) {
RED.nodes.createNode(this,n); RED.nodes.createNode(this,n);