Skip to content

Commit 61bb4f6

Browse files
committed
use autoOpen prop instead of openImmediately bool
1 parent 66353b3 commit 61bb4f6

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

lib/avr109.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,8 @@ Avr109.prototype._reset = function(callback) {
102102
// creating a temporary connection for resetting only
103103
var tempSerialPort = new Serialport.SerialPort(_this.connection.options.port, {
104104
baudRate: 1200,
105-
}, false);
105+
autoOpen: false
106+
});
106107

107108
_this.connection.serialPort = tempSerialPort;
108109
conn = _this.connection;

lib/connection.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,8 @@ Connection.prototype._init = function(callback) {
4747
Connection.prototype._setUpSerial = function(callback) {
4848
this.serialPort = new Serialport.SerialPort(this.options.port, {
4949
baudRate: this.board.baud,
50-
}, false);
50+
autoOpen: false
51+
});
5152
return callback(null);
5253
};
5354

0 commit comments

Comments
 (0)