Skip to content

Commit

Permalink
fix: Fix EZSP initialisation check (Koenkk#841)
Browse files Browse the repository at this point in the history
  • Loading branch information
Nerivec authored and slugzero committed Dec 31, 2023
1 parent 70092a1 commit f8835c0
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 f8835c0

Please sign in to comment.