Skip to content

Commit

Permalink
Update index.js
Browse files Browse the repository at this point in the history
  • Loading branch information
alessandromrc committed Apr 3, 2023
1 parent 0ebcf42 commit cb4140e
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions reset_rp2040/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,16 +9,6 @@ async function Main() {
path: process.argv[2],
baudRate: 1200,
}).on('error', (err) => {
drives.forEach(drive => {
driveList.push(drive.mountpoints[0].path);
});

if (driveList.includes('F:\\')) {
console.log("Board resetted!")
}
else {
console.log("Board not found!")
}
})
}
else {
Expand Down

0 comments on commit cb4140e

Please sign in to comment.