8000 Fix load_ports · arduino/micropython.js@a92d9c5 · GitHub
[go: up one dir, main page]

Skip to content

Commit a92d9c5

Browse files
committed
Fix load_ports
1 parent 7f38fd1 commit a92d9c5

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

cli.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,10 @@ function ensurePort(port) {
3434

3535
const listPorts = (args) => {
3636
const board = new Board()
37-
return board.listPorts()
37+
return board.list_ports()
3838
.then((ports) => {
39-
log('available ports', ports)
39+
const boards = ports.filter(p => p.vendorId && p.productId)
40+
log('available ports', boards)
4041
return Promise.resolve()
4142
})
4243
}

0 commit comments

Comments
 (0)
0