From 10cb8b72db0120e6d0485037e0452d18a1abdc33 Mon Sep 17 00:00:00 2001 From: "bsongis@gmail.com" Date: Mon, 20 May 2013 08:15:25 +0000 Subject: [PATCH] [Taranis] Model bitmap not always reloaded --- src/gui/menu_model.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/gui/menu_model.cpp b/src/gui/menu_model.cpp index cdda93fd0..42c82c54c 100644 --- a/src/gui/menu_model.cpp +++ b/src/gui/menu_model.cpp @@ -350,7 +350,7 @@ void menuModelSelect(uint8_t event) #endif #if defined(PCBTARANIS) - static int8_t modelselBitmapIdx = -1; + static int8_t modelselBitmapIdx; static uint8_t modelselBitmap[MODEL_BITMAP_SIZE]; #endif @@ -363,6 +363,9 @@ void menuModelSelect(uint8_t event) if (sub >= LCD_LINES-1) s_pgOfs = sub-LCD_LINES+2; s_copyMode = 0; s_editMode = EDIT_MODE_INIT; +#if defined(PCBTARANIS) + modelselBitmapIdx = -1; +#endif eeCheck(true); break; case EVT_KEY_LONG(KEY_EXIT):