Wouldn't it be wiser to use feature detection in combination with or in leu
of?
On Apr 24, 2014 8:56 AM, "Rick Waldron" <notifications@github.com> wrote:

> In lib/board.js:
>
> >  } else {
> >    IO = require("firmata").Board;
> >    serialport = require("serialport");
> >  }
> >
> > +
> > +function detectBoard() {
> > +  var board;
> > +
> > +  if (os.release().indexOf("yocto") !== -1) {
> > +    board = "galileo";
> > +  } else if (os.arch() === "arm" &&
> > +             fs.existsSync("/sys/devices/bone_capemgr.8/baseboard/board-name")) {
> > +    board = "beaglebone";
> > +  }
> > +
> > +  return board;
> > +}
>
>  Why not use the io plugin on the Board instantiation and leave firmata
> as default?
>
> Yeah, let's do that for now. Thanks for working through the detection
> anyway :)
>
> --
> Reply to this email directly or view it on GitHub<https://github.com/rwaldron/johnny-five/pull/329/files#r11955872>
> .
>