Skip to content

Commit

Permalink
fix: Fix EZSP initialisation check (#841)
Browse files Browse the repository at this point in the history
  • Loading branch information
Nerivec authored Dec 26, 2023
1 parent 854fd12 commit 93cc97f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/adapter/ezsp/driver/ezsp.ts
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,7 @@ export class Ezsp extends EventEmitter {
debug.log(`Next attempt ${i+1}`);
}
}
if (!this.serialDriver.isInitialized) {
if (!this.serialDriver.isInitialized()) {
throw new Error("Failure to connect");
}
if (WATCHDOG_WAKE_PERIOD) {
Expand Down

0 comments on commit 93cc97f

Please sign in to comment.