diff --git a/main.c b/main.c index 6f76db5..f3c313e 100644 --- a/main.c +++ b/main.c @@ -2601,7 +2601,6 @@ int main(void) /* restore config */ config_recall(); if (caldata_recall(0) == -1) { - setting.refer = -1; load_default_properties(); } /* restore frequencies and calibration 0 slot properties from flash memory */ diff --git a/sa_core.c b/sa_core.c index 0aaf436..4f278e0 100644 --- a/sa_core.c +++ b/sa_core.c @@ -52,13 +52,11 @@ void reset_settings(int m) setting.linearity_step = 0; trace[TRACE_STORED].enabled = false; trace[TRACE_TEMP].enabled = false; + setting.refer = -1; #ifdef __SPUR__ setting.spur = 0; #endif switch(m) { - case -1: - setting.refer = -1; // Clear cal signal when no autostart - break; case M_LOW: minFreq = 0; maxFreq = 520000000; diff --git a/ui_sa.c b/ui_sa.c index 1f06acf..8952808 100644 --- a/ui_sa.c +++ b/ui_sa.c @@ -1342,9 +1342,6 @@ static const menuitem_t menu_display[] = { { MT_CALLBACK,1, "CLEAR", menu_storage_cb}, { MT_CALLBACK,2, "SUBTRACT", menu_storage_cb}, { MT_CALLBACK,3, "WATERFALL", menu_storage_cb}, -#ifdef __SPUR__ - { MT_CALLBACK | MT_LOW,0, "\2SPUR\0REMOVAL", menu_spur_cb}, -#endif { MT_CANCEL, 0, S_LARROW" BACK", NULL }, { MT_NONE, 0, NULL, NULL } // sentinel };