thermferm/panel.c

changeset 238
a0f1deb65889
parent 229
5f93b61adb34
child 241
4ba138737bf4
equal deleted inserted replaced
237:51a294d683cd 238:a0f1deb65889
47 47
48 48
49 extern int my_shutdown; 49 extern int my_shutdown;
50 extern int debug; 50 extern int debug;
51 extern int setupmenu; 51 extern int setupmenu;
52 extern units_list *current_unit;
52 53
53 int Key_Enter = FALSE; 54 int Key_Enter = FALSE;
54 int Key_Enter_Long = FALSE; 55 int Key_Enter_Long = FALSE;
55 int Key_Up = FALSE; 56 int Key_Up = FALSE;
56 int Key_Down = FALSE; 57 int Key_Down = FALSE;
179 } 180 }
180 181
181 if (setupmenu != MENU_NONE) { 182 if (setupmenu != MENU_NONE) {
182 if (menutimer < MENU_TIMEOUT) 183 if (menutimer < MENU_TIMEOUT)
183 menutimer++; 184 menutimer++;
184 else 185 else {
185 setupmenu = MENU_NONE; 186 setupmenu = MENU_NONE;
187 if (current_unit)
188 free(current_unit);
189 current_unit = NULL;
190 }
186 } 191 }
187 } 192 }
188 } 193 }
189 194
190 /* 195 /*

mercurial