1
0
Fork 0
mirror of https://github.com/opentx/opentx.git synced 2025-07-23 00:05:17 +03:00

It was possible to have the Limits contextual menu displayed in

READ_ONLY mode
This commit is contained in:
bsongis 2014-10-11 21:46:51 +02:00
parent 8354f4d842
commit c4c7fed727

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);