Skip to content

Commit

Permalink
serialport update
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael Marciniak committed Sep 21, 2022
1 parent 4c88107 commit caa704f
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion lib/avr109.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
var AVR109 = require('chip.avr.avr109');
var colors = require('colors');
var fs = require('graceful-fs');
var Serialport = require('serialport');
var Serialport = require('serialport').Serialport;
var async = require('async');
var Protocol = require('./protocol');
var util = require('util');
Expand Down
5 changes: 3 additions & 2 deletions lib/connection.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
var Serialport = require('serialport');
var Serialport = require('serialport').Serialport;
var awty = require('awty');

var Connection = function(options) {
Expand Down Expand Up @@ -46,7 +46,8 @@ Connection.prototype._init = function(callback) {
* Create new serialport instance for the Arduino board, but do not immediately connect.
*/
Connection.prototype._setUpSerial = function(callback) {
this.serialPort = new Serialport(this.options.port, {
this.serialPort = new Serialport( {
path: this.options.port,
baudRate: this.board.baud,
autoOpen: false
});
Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@
},
"homepage": "https://github.com/noopkat/avrgirl-arduino",
"dependencies": {
"@serialport/bindings-cpp": "10.7.0",
"async": "^2.6.3",
"awty": "^0.1.0",
"browser-serialport": "git+https://github.com/noopkat/browser-serialport.git#c8628c41c11890d3058875994c15f83f2df8185b",
Expand All @@ -42,7 +43,7 @@
"intel-hex": "^0.1.2",
"minimist": "^1.2.5",
"process": "^0.11.10",
"serialport": "^9.0.6",
"serialport": "^10.4.0",
"stk500": "^2.0.3",
"stk500-v2": "^1.0.4"
},
Expand Down

0 comments on commit caa704f

Please sign in to comment.