feat: WASM based web simulator (#7164)
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 4.6
parent
a2aeab9234
commit
b2fb79d9f4
@@ -27,6 +27,10 @@
|
||||
|
||||
#include "hal/abnormal_reboot.h"
|
||||
|
||||
#if defined(SIMU)
|
||||
extern bool simuCreateDefaultSettings;
|
||||
#endif
|
||||
|
||||
#if defined(COLORLCD)
|
||||
#include "layout.h"
|
||||
#include "theme_manager.h"
|
||||
@@ -211,6 +215,18 @@ void storageReadAll()
|
||||
g_eeGeneral.modelCustomScriptsDisabled = true;
|
||||
|
||||
if (loadRadioSettings() != nullptr) {
|
||||
#if defined(SIMU)
|
||||
if (simuCreateDefaultSettings) {
|
||||
// Web simulator first run: silently create defaults without
|
||||
// STORAGE WARNING alert or calibration screen.
|
||||
simuCreateDefaultSettings = false;
|
||||
storageFormat();
|
||||
g_eeGeneral.chkSum = evalChkSum();
|
||||
storageDirty(EE_GENERAL);
|
||||
storageDirty(EE_MODEL);
|
||||
storageCheck(true);
|
||||
} else
|
||||
#endif
|
||||
storageEraseAll(true);
|
||||
}
|
||||
#if !defined(STORAGE_MODELSLIST)
|
||||
|
||||
Reference in New Issue
Block a user