Skip to content

Commit

Permalink
fix: Internal module setting and applying post load fixes on radio se…
Browse files Browse the repository at this point in the history
…ttings (#1787)
  • Loading branch information
raphaelcoeffic authored and pfeerick committed Apr 2, 2022
1 parent c2d8ff6 commit d38c228
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
7 changes: 2 additions & 5 deletions radio/src/storage/sdcard_yaml.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -129,15 +129,12 @@ const char * loadRadioSettings()
#endif
}

#if defined(DEFAULT_INTERNAL_MODULE)
g_eeGeneral.internalModule = DEFAULT_INTERNAL_MODULE;
#endif

const char* error = loadRadioSettingsYaml();
if (!error) {
g_eeGeneral.chkSum = evalChkSum();
}

postRadioSettingsLoad();

return error;
}

Expand Down
5 changes: 5 additions & 0 deletions radio/src/storage/storage_common.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,11 @@ void postRadioSettingsLoad()
serialSetMode(SP_VCP, UART_MODE_CLI);
}
#endif
#if defined(DEFAULT_INTERNAL_MODULE)
if (!g_eeGeneral.internalModule) {
g_eeGeneral.internalModule = DEFAULT_INTERNAL_MODULE;
}
#endif
}

#if defined(EXTERNAL_ANTENNA) && defined(INTERNAL_MODULE_PXX1)
Expand Down

0 comments on commit d38c228

Please sign in to comment.