Issue 105 -- DSM2 range check mode completed.

However, I don't like that the only place I could find to turn off range check mode when the SETUP menus is exited, was in popMenu ...

void popMenu()
{
  if (g_menuStackPtr>0) {
#ifdef DSM2
    s_rangecheck_mode = 0;
#endif
    ...
}

It was the only way I could find to trap the event of [EXIT long] being pressed 
while in the RANGE field and s_editMode==true. But this solution gets executed
for all menu exits -- not just menuProcModels. It works, but there must be a
more eloquent method?
This commit is contained in:
gruvin@gmail.com
2012-08-22 07:09:27 +00:00
parent d6690cbb01
commit 80b63a9d37
2 changed files with 4 additions and 4 deletions
+3
View File
@@ -476,6 +476,9 @@ uint8_t m_posHorz;
void popMenu()
{
if (g_menuStackPtr>0) {
#ifdef DSM2
s_rangecheck_mode = 0;
#endif
g_menuStackPtr = g_menuStackPtr-1;
AUDIO_KEYPAD_UP();
m_posHorz = 0;