Skip to content

Commit

Permalink
fix: device detection stuck when receiving hardware error
Browse files Browse the repository at this point in the history
  • Loading branch information
berkon committed Jan 6, 2024
1 parent dcd368e commit 6225493
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions renderer.js
Original file line number Diff line number Diff line change
Expand Up @@ -831,7 +831,7 @@ const portOpenCb = () => {

if ( portDetectionIndex < globalPorts.length ) {
console.log ( `Now trying port with index ${portDetectionIndex}`)
connectDevice ( portDetectionIndex, false )
connectDevice ( 'AUTO', false )
} else {
console.log ( `No more ports available!` )
}
Expand Down Expand Up @@ -1014,7 +1014,7 @@ const portOpenCb = () => {

if ( portDetectionIndex < globalPorts.length ) {
console.log ( `Now trying port with index ${portDetectionIndex}` )
connectDevice ( portDetectionIndex, false )
connectDevice ( 'AUTO', false )
} else {
console.log ( `No more ports available!` )
}
Expand Down

0 comments on commit 6225493

Please sign in to comment.