소스 검색

Merge remote-tracking branch 'ledvinap/MK3' into fix_compiler_warnings

Marek Bel 6 년 전
부모
커밋
ca97e2232f
1개의 변경된 파일4개의 추가작업 그리고 1개의 파일을 삭제
  1. 4 1
      Firmware/menu.cpp

+ 4 - 1
Firmware/menu.cpp

@@ -75,7 +75,10 @@ void menu_end(void)
 
 void menu_back(void)
 {
-	if (menu_depth > 0) menu_goto(menu_stack[--menu_depth].menu, menu_stack[menu_depth].position, true, true);
+	if (menu_depth > 0) {
+		menu_depth--;		
+		menu_goto(menu_stack[menu_depth].menu, menu_stack[menu_depth].position, true, true);
+	}
 }
 
 void menu_back_if_clicked(void)