rwaldron/galileo-io

digital gpios niot getting initialised

gilesbradshaw opened this issue · 3 comments

you have

 if (error && error.code === "ENOENT") {

but I get EISDIR

so I think you need something like

if (error && (error.code === "ENOENT" || error.code === "EISDIR")) {

Thanks for the report! Can you provide a bit of extra information:

  1. Which linux image version (presumably the stable 0.7.5)?
  2. Which version of Node.js is installed on the Galileo?
  3. This error occurs when executing code on the Galileo?

edit I added a third question

Hi it's the 200MB SD image from here https://software.intel.com/en-us/iotdevkit

node version is 0.10.22
linux version 3.8.7-yocto-standard

and yes running on Galileo

many thanks

Can you create a patch and pull request with your fix above?