From 25c07e4a0d9f806d0e7eba00aaaeaca294737986 Mon Sep 17 00:00:00 2001 From: iridiumR Date: Wed, 8 Jun 2022 00:46:10 +0800 Subject: [PATCH] =?UTF-8?q?perf(MCU=E8=AF=BE=E8=AE=BE):=20=E5=BE=AE?= =?UTF-8?q?=E8=B0=83=E8=8F=9C=E5=8D=95=E9=80=BB=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- MCU/MCU_REAL_FINAL/menu.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/MCU/MCU_REAL_FINAL/menu.c b/MCU/MCU_REAL_FINAL/menu.c index d9c81e3..6273e04 100644 --- a/MCU/MCU_REAL_FINAL/menu.c +++ b/MCU/MCU_REAL_FINAL/menu.c @@ -67,6 +67,8 @@ void m_mainmenu(struct _menu* this) { if(local[0] > 1) local[0]--; + if(local[0] == 0) + local[0] = 3; opr = idle; drawMAINMENU(local[0]); @@ -109,7 +111,7 @@ void m_block(struct _menu* this) if(opr == confirm) { opr = idle; - clear(); + clear(); blockDestroy(); NOW = &M_MAINMENU; return; @@ -184,7 +186,7 @@ void m_about(struct _menu* this) opr = idle; NOW = &M_MAINMENU; //转向下一菜单 clear(); - //若满足隐藏条件,清空排行榜 + //若满足隐藏条件,清空排行榜 if(local[2] >= 30 && local[3] >= 30) { IapProgramByte(IAP_ADDRESS + 0, 0);