Skip to content

Commit 7f375cf

Browse files
committed
Implemented closeAllPorts
1 parent 0952c7b commit 7f375cf

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

es/web-serial-daemon.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,7 @@ var WebSerialDaemon = /*#__PURE__*/function (_Daemon) {
115115
key: "closeAllPorts",
116116
value: function closeAllPorts() {
117117
console.log('should be closing serial ports here');
118+
this.uploader.closeAllPorts();
118119
}
119120
/**
120121
* Request serial port open

src/web-serial-daemon.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,7 @@ export default class WebSerialDaemon extends Daemon {
7070
// eslint-disable-next-line class-methods-use-this
7171
closeAllPorts() {
7272
console.log('should be closing serial ports here');
73+
this.uploader.closeAllPorts();
7374
}
7475

7576
/**

0 commit comments

Comments
 (0)