Skip to content
This repository has been archived by the owner on May 30, 2018. It is now read-only.

Commit

Permalink
updated node-serialport
Browse files Browse the repository at this point in the history
  • Loading branch information
Tobias Schneider authored and Tobias Schneider committed Sep 21, 2010
1 parent d30d5b6 commit 72a5bbc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 11 deletions.
2 changes: 1 addition & 1 deletion deps/node-serialport
Submodule node-serialport updated from 9ef351 to 6e4d76
12 changes: 2 additions & 10 deletions lib/arduino.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,7 @@
*/

var sys = require('sys')
, SerialPort = require(
'../deps/node-serialport/serialport_native/build/default/serialport_native'
).SerialPort
, SerialPort = require('../deps/node-serialport/serialport').SerialPort
;

const SERIAL_BAUDRATE = 9600;
Expand All @@ -34,13 +32,7 @@ exports.DEFAULT = 0x01;
exports.INTERNAL = 0x03;

Board = function (path) {
this.sp = new SerialPort;

this.sp.on('data', function (data) {
sys.log(1);
});

this.sp.open(path, SERIAL_BAUDRATE);
this.sp = new SerialPort(path, SERIAL_BAUDRATE);
}

Board.prototype = {
Expand Down

0 comments on commit 72a5bbc

Please sign in to comment.