1
0
mirror of https://github.com/node-red/node-red-nodes.git synced 2023-10-10 13:36:58 +02:00

Make LEDBorg not even display warning if not present (less confusing).

This commit is contained in:
Dave C-J 2014-04-03 12:30:40 +01:00
parent 9ed2d06e0f
commit 842d3e3c7e
2 changed files with 3 additions and 1 deletions

View File

@ -27,6 +27,8 @@
<p>See <i><a href="http://www.piborg.com/ledborg/install" target="_new">the PiBorg site</a></i> for more information.</p>
<p>You can also now use a <b>msg.payload</b> in the standard hex format "#rrggbb". The clip levels are :</p>
<p><pre>0x00 - 0x57 = off<br/>0x58 - 0xA7 = 50%<br/>0xA8 - 0xFF = fully on</pre></p>
<p>You can also use the @cheerlight colour names - red, amber, green, blue, cyan, magenta, yeloow, orange, pink, purple,
white, warmwhite, black</p>
</script>
<script type="text/javascript">

View File

@ -20,7 +20,7 @@ var fs = require('fs');
// check if /dev/ledborg exists - if not then don't even show the node.
if (!fs.existsSync("/dev/ledborg")) {
util.log("[78-ledborg.js] Warning: PiBorg hardware : LedBorg not found");
//util.log("[78-ledborg.js] Warning: PiBorg hardware : LedBorg not found");
return;
}