From b02ff17828c9952cfe94a19684ee26b4d990eeb0 Mon Sep 17 00:00:00 2001 From: "romolo.manfredini@gmail.com" Date: Mon, 14 May 2012 22:44:23 +0000 Subject: [PATCH] Fix for templates menu --- src/model_menus.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/model_menus.cpp b/src/model_menus.cpp index 47f551c85..75214c37d 100644 --- a/src/model_menus.cpp +++ b/src/model_menus.cpp @@ -2460,7 +2460,9 @@ void menuProcTemplates(uint8_t _event) switch(event) { case EVT_KEY_FIRST(KEY_MENU): - s_warning = STR_VTEMPLATES+1 + (sub * LEN2_VTEMPLATES); + if (sub!=255) { + s_warning = STR_VTEMPLATES+1 + (sub * LEN2_VTEMPLATES); + } killEvents(event); _event = 0; s_editMode = 0;