1
0
Fork 0
mirror of https://github.com/EdgeTX/edgetx.git synced 2025-07-24 00:35:14 +03:00

[ARM boards] Model persistent timers / telemetry / pots positions were not always correctly saved

This commit is contained in:
Bertrand Songis 2016-09-13 18:35:03 +02:00
parent 4a88d3477d
commit 2b32abe467
8 changed files with 40 additions and 45 deletions

View file

@ -71,7 +71,7 @@ void selectModel(uint8_t sub)
#if !defined(COLORLCD)
showMessageBox(STR_LOADINGMODEL);
#endif
saveTimers();
storageFlushCurrentModel();
storageCheck(true); // force writing of current model data before this is changed
g_eeGeneral.currModel = sub;
storageDirty(EE_GENERAL);