Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: EFB Setting to enable MCDU Server connection to avoid too many connection attempts #6947

Merged
merged 12 commits into from
Mar 23, 2022
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Changed startup check to ensure the DataStore has a stored value
  • Loading branch information
frankkopp committed Mar 21, 2022
commit 624ec5fe0ad5b4101bec22f520b46521ab7faa48
Original file line number Diff line number Diff line change
Expand Up @@ -123,10 +123,10 @@ class A320_Neo_CDU_MainDisplay extends FMCMainDisplay {
this.socketConnectionAttempts = 0;
this.maxConnectionAttempts = 60;
this.mcduServerConnect = NXDataStore.get("CONFIG_EXTERNAL_MCDU_SERVER_ENABLED", 'AUTO ON');
if (this.mcduServerConnect === 'AUTO OFF') {
if (this.mcduServerConnect !== 'PERM OFF') {
NXDataStore.set("CONFIG_EXTERNAL_MCDU_SERVER_ENABLED", 'AUTO ON');
this.mcduServerConnect = 'AUTO ON';
} else if (this.mcduServerConnect === 'PERM OFF') {
} else {
console.log("MCDU server connection attempts permanently deactivated.");
}
}
Expand Down