Skip to content

Commit

Permalink
fix: 🐛 connection failure
Browse files Browse the repository at this point in the history
  • Loading branch information
meisZWFLZ committed Dec 29, 2023
1 parent 4785996 commit c29ccf4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/VexConnection.ts
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ export class VexSerialConnection extends VexEventTarget {

if (port == null) return undefined;

if (port.readable == null) return false;
if (port.readable != null) return false;

try {
await port.open({ baudRate: 115200 });
Expand Down

0 comments on commit c29ccf4

Please sign in to comment.