fix pilcd access to io (needs to be root)

This commit is contained in:
Dave Conway-Jones 2016-01-09 16:57:13 +00:00
parent d5b95cf7a7
commit 251d5c8be6
2 changed files with 2 additions and 2 deletions

View File

@ -1,6 +1,6 @@
{
"name" : "node-red-node-pilcd",
"version" : "0.0.2",
"version" : "0.0.3",
"description" : "A Node-RED node for Raspberry Pi to write to HD44780 style LCD panels.",
"dependencies" : {
},

View File

@ -20,7 +20,7 @@ module.exports = function(RED) {
var spawn = require('child_process').spawn;
var fs = require('fs');
var gpioCommand = __dirname + '/nrlcd.py';
var gpioCommand = __dirname + '/nrlcd';
if (!fs.existsSync("/dev/ttyAMA0")) { // unlikely if not on a Pi
//util.log("Info : Ignoring Raspberry Pi specific node.");