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:
parent
9ed2d06e0f
commit
842d3e3c7e
@ -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">
|
||||
|
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user