feat: WASM based web simulator (#7164)

Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Raphael Coeffic
2026-05-08 12:40:56 +10:00
committed by GitHub
co-authored by Claude Opus 4.6
parent a2aeab9234
commit b2fb79d9f4
29 changed files with 12305 additions and 0 deletions
+16
View File
@@ -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)