duino
duino copied to clipboard
Change board's ready trigger / Ensure attachment of servos
Thanks for your work ecto, duino is really cool and easy to get into, good job!
Anyway, this PR fixes #21.
It was a sort of racing condition where the board would sometimes trigger the ready event earlier and it should, now it listens for serialport's open event.
Also I made it so that you can use servos inside the board's ready event callback.
Lastly updated the board's name property to path based on serialport's.
Cheers
Something's wrong here, this breaks the device: 'ACM' functionality in lib.board.js that was added here:
https://github.com/ecto/duino/commit/1dc12777607d03899b211f61c43db6b0e8c49181