perf(MCU课设): 微调逻辑,提高性能

This commit is contained in:
iridiumR 2022-06-08 00:43:16 +08:00
parent 5a78565934
commit 8bc5f2e635

View file

@ -105,13 +105,13 @@ void m_block(struct _menu* this)
drawBLOCKSCORE(); drawBLOCKSCORE();
blockInit(); blockInit();
} }
//ÖØÖà //·µ»Ø
if(opr == confirm) if(opr == confirm)
{ {
opr = idle; opr = idle;
clear();
blockDestroy(); blockDestroy();
NOW = &M_MAINMENU; NOW = &M_MAINMENU;
clear();
return; return;
} }
if(opr == left) if(opr == left)
@ -185,7 +185,7 @@ void m_about(struct _menu* this)
NOW = &M_MAINMENU; //转向下一菜单 NOW = &M_MAINMENU; //转向下一菜单
clear(); clear();
//若满足隐藏条件,清空排行榜 //若满足隐藏条件,清空排行榜
if(local[2] >= 10 && local[3] >= 10) if(local[2] >= 30 && local[3] >= 30)
{ {
IapProgramByte(IAP_ADDRESS + 0, 0); IapProgramByte(IAP_ADDRESS + 0, 0);
IapProgramByte(IAP_ADDRESS + 1, 0); IapProgramByte(IAP_ADDRESS + 1, 0);