Skip to content

Commit

Permalink
fixed examples
Browse files Browse the repository at this point in the history
  • Loading branch information
brugnara committed Sep 22, 2014
1 parent d8e0dae commit 067a647
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 2 deletions.
1 change: 1 addition & 0 deletions examples/events.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,5 @@ var modem = new Modem('/dev/tty.usbserial', function(err, data) {
// listen for a serial port event, ie: RING
modem.on('RING', function() {
console.log('Ringing!!!!');
modem.close();
});
1 change: 1 addition & 0 deletions examples/sequence.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,5 @@ modem.sequence([
], function(err) {
err && console.error(err);
console.log('done');
modem.close();
});
1 change: 1 addition & 0 deletions examples/text_message.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,4 +27,5 @@ async.waterfall([
}
], function(err) {
err && console.error(err);
modem.close();
});
3 changes: 2 additions & 1 deletion examples/voicecall.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* Created by vrut on 22/09/14.
*/

var Modem = require('./');
var Modem = require('../');
var async = require('async');

var modem = new Modem('/dev/tty.usbserial', function(err, data) {
Expand All @@ -22,4 +22,5 @@ async.waterfall([
}
], function(err) {
err && console.error(err);
modem.close();
});
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "node-modem",
"version": "0.1.0",
"version": "0.1.1",
"description": "a modem manager.",
"main": "index.js",
"scripts": {
Expand Down

0 comments on commit 067a647

Please sign in to comment.