kopia lustrzana https://github.com/OpenRTX/OpenRTX
Removed CPS flash backup and restore (actually unused) and hidden its UI menu entry
CPS flash backup and restore will be implemented via rtxlink/FMP, removed current implementation which was never actually used. Code for backup and restore UI menu entry kept for now.pull/149/head
rodzic
b335aeb22c
commit
498f959798
|
@ -83,7 +83,6 @@ enum menuItems
|
|||
M_GPS,
|
||||
#endif
|
||||
M_SETTINGS,
|
||||
M_BACKUP_RESTORE,
|
||||
M_INFO,
|
||||
M_ABOUT
|
||||
};
|
||||
|
|
|
@ -144,29 +144,6 @@ void *main_thread(void *arg)
|
|||
state.devStatus = SHUTDOWN;
|
||||
pthread_mutex_unlock(&state_mutex);
|
||||
|
||||
// Handle external flash backup/restore
|
||||
#if !defined(PLATFORM_LINUX) && !defined(PLATFORM_MOD17)
|
||||
if(state.backup_eflash)
|
||||
{
|
||||
eflash_dump();
|
||||
|
||||
pthread_mutex_lock(&state_mutex);
|
||||
state.backup_eflash = false;
|
||||
state.devStatus = SHUTDOWN;
|
||||
pthread_mutex_unlock(&state_mutex);
|
||||
}
|
||||
|
||||
if(state.restore_eflash)
|
||||
{
|
||||
eflash_restore();
|
||||
|
||||
pthread_mutex_lock(&state_mutex);
|
||||
state.restore_eflash = false;
|
||||
state.devStatus = SHUTDOWN;
|
||||
pthread_mutex_unlock(&state_mutex);
|
||||
}
|
||||
#endif
|
||||
|
||||
// Run GPS task
|
||||
#if defined(GPS_PRESENT) && !defined(MD3x0_ENABLE_DBG)
|
||||
gps_task();
|
||||
|
|
|
@ -130,7 +130,6 @@ const char *menu_items[] =
|
|||
"GPS",
|
||||
#endif
|
||||
"Settings",
|
||||
"Backup & Restore",
|
||||
"Info",
|
||||
"About"
|
||||
};
|
||||
|
@ -1602,9 +1601,6 @@ void ui_updateFSM(bool *sync_rtx)
|
|||
case M_SETTINGS:
|
||||
state.ui_screen = MENU_SETTINGS;
|
||||
break;
|
||||
case M_BACKUP_RESTORE:
|
||||
state.ui_screen = MENU_BACKUP_RESTORE;
|
||||
break;
|
||||
case M_INFO:
|
||||
state.ui_screen = MENU_INFO;
|
||||
break;
|
||||
|
|
Ładowanie…
Reference in New Issue