diff --git a/main.c b/main.c index 5ee8256..6f54a3f 100644 --- a/main.c +++ b/main.c @@ -2139,6 +2139,7 @@ int main(void) #ifdef TINYSA3 has_esd = ((palReadPort(GPIOB) & (1<<12)) ? false : true ); + #endif @@ -2202,6 +2203,10 @@ int main(void) #endif /* restore config */ +#ifdef TINYSA3 + if (has_esd) + config.switch_offset = -5.0; +#endif config_recall(); config.cor_am = 0; // Should be removed from config config.cor_nfm = 0; diff --git a/ui_sa.c b/ui_sa.c index 8ec0ccc..7c0ff97 100644 --- a/ui_sa.c +++ b/ui_sa.c @@ -3371,7 +3371,7 @@ redraw_cal_status: if (setting.spur_removal != S_OFF) { ili9341_set_foreground(setting.spur_removal == S_ON ? LCD_BRIGHT_COLOR_GREEN : LCD_FG_COLOR); lcd_printf(x, y, "Spur:\n%s", S_IS_AUTO(setting.spur_removal) ? "AUTO" : "ON"); - y = add_quick_menu(y += YSTEP, (menuitem_t *)menu_stimulus); + y = add_quick_menu(y += YSTEP, (menuitem_t *)menu_config); } if (setting.mirror_masking) { ili9341_set_foreground(LCD_BRIGHT_COLOR_GREEN);