Skip to content

Commit 7b9e4a3

Browse files
committed
remove all uses of deprecated serialPort.serialPort
1 parent 61bb4f6 commit 7b9e4a3

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lib/avr109.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ Avr109.prototype._reset = function(callback) {
100100
var conn;
101101

102102
// creating a temporary connection for resetting only
103-
var tempSerialPort = new Serialport.SerialPort(_this.connection.options.port, {
103+
var tempSerialPort = new Serialport(_this.connection.options.port, {
104104
baudRate: 1200,
105105
autoOpen: false
106106
});

lib/connection.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ Connection.prototype._init = function(callback) {
4545
* Create new serialport instance for the Arduino board, but do not immediately connect.
4646
*/
4747
Connection.prototype._setUpSerial = function(callback) {
48-
this.serialPort = new Serialport.SerialPort(this.options.port, {
48+
this.serialPort = new Serialport(this.options.port, {
4949
baudRate: this.board.baud,
5050
autoOpen: false
5151
});

0 commit comments

Comments
 (0)