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

New bunch of files moved ...

This commit is contained in:
bsongis 2015-01-09 23:56:16 +01:00
parent 2d19692038
commit bfeab1402c
37 changed files with 2963 additions and 1109 deletions

View file

@ -48,6 +48,27 @@ void eeDirty(uint8_t msk)
s_eeDirtyTime10ms = get_tmr10ms() ;
}
uint8_t eeFindEmptyModel(uint8_t id, bool down)
{
uint8_t i = id;
for (;;) {
i = (MAX_MODELS + (down ? i+1 : i-1)) % MAX_MODELS;
if (!eeModelExists(i)) break;
if (i == id) return 0xff; // no free space in directory left
}
return i;
}
void selectModel(uint8_t sub)
{
displayPopup(STR_LOADINGMODEL);
saveTimers();
eeCheck(true); // force writing of current model data before this is changed
g_eeGeneral.currModel = sub;
eeDirty(EE_GENERAL);
eeLoadModel(sub);
}
#if defined(CPUARM)
ModelHeader modelHeaders[MAX_MODELS];
void eeLoadModelHeaders()