rwaldron / galileo-io

Intel Galileo & Intel Edison IO Plugin for Johnny-Five
http://johnny-five.io
MIT License
101 stars 26 forks source link

digital gpios niot getting initialised #7

Closed gilesbradshaw closed 10 years ago

gilesbradshaw commented 10 years ago

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")) {
rwaldron commented 10 years ago

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

gilesbradshaw commented 10 years ago

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

rwaldron commented 10 years ago

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