pref: 优化reset菜单退出机制
This commit is contained in:
@@ -56,12 +56,10 @@ static void Event(page_event event)
|
|||||||
{
|
{
|
||||||
Curser_Last = Curser;
|
Curser_Last = Curser;
|
||||||
|
|
||||||
if (page_event_forward == event) {
|
if (page_event_press_long == event) {
|
||||||
// Curser++; // 光标上移
|
|
||||||
} else if (page_event_backward == event) {
|
|
||||||
// Curser--; // 光标下移
|
|
||||||
} else if (page_event_press_long == event) {
|
|
||||||
NVIC_SystemReset();
|
NVIC_SystemReset();
|
||||||
|
}else{
|
||||||
|
Page_Shift(page_menu);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (Curser < LINE_HEAD) {
|
if (Curser < LINE_HEAD) {
|
||||||
@@ -96,5 +94,7 @@ void PageRegister_page_reset(unsigned char pageID)
|
|||||||
static void Print_Menu_p(void)
|
static void Print_Menu_p(void)
|
||||||
{
|
{
|
||||||
ips200_show_string(0, 0, Text);
|
ips200_show_string(0, 0, Text);
|
||||||
ips200_show_string(20, 20, "Long Press to Reset");
|
ips200_show_string(20, 20, "-> Long Press to Reset");
|
||||||
|
ips200_show_string(20, 60, "* Press other keys to");
|
||||||
|
ips200_show_string(20, 80, "return main menu");
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user