From 98a029bfd71ee6fb1855f28a58e8a80a0de788a9 Mon Sep 17 00:00:00 2001 From: Dave C-J Date: Wed, 24 Dec 2014 21:53:00 +0000 Subject: [PATCH] Slightly better hardware discrimination for Hummingboard Node --- hardware/HummingboardGPIO/hb-gpio.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hardware/HummingboardGPIO/hb-gpio.js b/hardware/HummingboardGPIO/hb-gpio.js index b4c07c82..88cc61db 100644 --- a/hardware/HummingboardGPIO/hb-gpio.js +++ b/hardware/HummingboardGPIO/hb-gpio.js @@ -21,7 +21,7 @@ module.exports = function(RED) { var gpioCommand = '/usr/local/bin/gpiohb'; - //if (!fs.existsSync("/etc/init.d/armhwinfo")) { // unlikely if not on a Hummingboard + //if (!fs.existsSync("/sys/devices/soc0/machine")) { // unlikely if not on a Hummingboard //throw "Info : Ignoring Hummingboard specific node."; //}