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

[Horus] Freeze in Model Custom Scripts menu

This commit is contained in:
Bertrand Songis 2016-03-09 18:58:11 +01:00
parent 3b2524dcbb
commit 382e4d2d4b

View file

@ -18,7 +18,7 @@
* GNU General Public License for more details. * GNU General Public License for more details.
*/ */
#include "../../opentx.h" #include "opentx.h"
void onModelCustomScriptMenu(const char *result) void onModelCustomScriptMenu(const char *result)
{ {
@ -130,7 +130,7 @@ bool menuModelCustomScripts(evt_t event)
int8_t sub = menuVerticalPosition; int8_t sub = menuVerticalPosition;
if (event == EVT_KEY_FIRST(KEY_ENTER)) { if (event == EVT_KEY_FIRST(KEY_ENTER) && sub >= 0) {
s_currIdx = sub; s_currIdx = sub;
pushMenu(menuModelCustomScriptOne); pushMenu(menuModelCustomScriptOne);
} }