Disable reading VFO and settings from flash until persistence is implemented

replace/937fac2afb8b4b388ec6c8ab75bba4838bc21fb2
Federico Amedeo Izzo 2021-03-13 22:52:37 +01:00
rodzic b7795b47c0
commit 9720032238
1 zmienionych plików z 5 dodań i 3 usunięć

Wyświetl plik

@ -46,7 +46,7 @@ void state_init()
// Set default channel index (it is 1-based)
state.channel_index = 1;
// Read VFO channel from Flash storage
// HACK: Temporarily disabled to fix splash screen freeze on GD-77
// NOTE: Disable reading VFO from flash until persistence is implemented
//if(nvm_readVFOChannelData(&state.channel) != 0)
if(1)
{
@ -73,9 +73,11 @@ void state_init()
state.emergency = false;
// Read settings from flash memory
int valid = nvm_readSettings(&state.settings);
// NOTE: Disable reading VFO from flash until persistence is implemented
//int valid = nvm_readSettings(&state.settings);
// Settings in flash memory were not valid, restoring default settings
if(valid != 0)
//if(valid != 0)
if(1)
{
state.settings = default_settings;
// NOTE: Settings writing disabled until DFU is implemented