From c4c7fed72702b9f536af37324cd377371289e123 Mon Sep 17 00:00:00 2001 From: bsongis Date: Sat, 11 Oct 2014 21:46:51 +0200 Subject: [PATCH] It was possible to have the Limits contextual menu displayed in READ_ONLY mode --- radio/src/gui/menu_model.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/radio/src/gui/menu_model.cpp b/radio/src/gui/menu_model.cpp index c659700e2..b137eb375 100644 --- a/radio/src/gui/menu_model.cpp +++ b/radio/src/gui/menu_model.cpp @@ -4064,7 +4064,7 @@ void menuModelLimits(uint8_t event) #if defined(PCBTARANIS) putsChn(0, y, k+1, (sub==k && m_posHorz < 0) ? INVERS : 0); - if (sub==k && m_posHorz < 0 && event==EVT_KEY_LONG(KEY_ENTER)) { + if (sub==k && m_posHorz < 0 && event==EVT_KEY_LONG(KEY_ENTER) && !READ_ONLY()) { killEvents(event); MENU_ADD_ITEM(STR_RESET); MENU_ADD_ITEM(STR_COPY_TRIMS_TO_OFS);