Skip to content

Commit

Permalink
Fix intermittent race condition (betaflight#3901)
Browse files Browse the repository at this point in the history
Fix race condition
  • Loading branch information
haslinghuis authored and chmelevskij committed Apr 27, 2024
1 parent 3190435 commit 040fd76
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/js/serial_backend.js
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ export function initializeSerialBackend() {
finishClose(toggleStatus);
}

mspHelper.setArmingEnabled(true, false, onFinishCallback);
mspHelper?.setArmingEnabled(true, false, onFinishCallback);
}
}
}
Expand Down

0 comments on commit 040fd76

Please sign in to comment.