It was possible to have the Limits contextual menu displayed in

READ_ONLY mode
This commit is contained in:
bsongis
2014-10-14 22:34:49 +02:00
parent 8354f4d842
commit c4c7fed727
+1 -1
View File
@@ -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);