Commit 09bc778d authored by 何锐's avatar 何锐

feat:进入ota模式

parent 03795fc7
...@@ -111,8 +111,7 @@ void Key_Operation_SW2(Key_Event_en_t enKeyEvent) ...@@ -111,8 +111,7 @@ void Key_Operation_SW2(Key_Event_en_t enKeyEvent)
} }
else if ( enKeyEvent == KEY_EVENT_LONG_PRESS ) else if ( enKeyEvent == KEY_EVENT_LONG_PRESS )
{ {
// Key_Mode = 1; //左键 Key_Mode = 3;
backflag = 1;
} }
else if ( enKeyEvent == KEY_EVENT_SUPER_LONG_PRESS ) else if ( enKeyEvent == KEY_EVENT_SUPER_LONG_PRESS )
{ {
......
...@@ -158,11 +158,11 @@ void Key_Judgment_Service(void) ...@@ -158,11 +158,11 @@ void Key_Judgment_Service(void)
{ {
Aimadata.Sig.media_left_key = 0x00; Aimadata.Sig.media_left_key = 0x00;
} }
else if(Key_Mode == 2) //右键 else if((Key_Mode == 2)) //右键
{ {
Aimadata.Sig.media_right_key = 0x00; Aimadata.Sig.media_right_key = 0x00;
} }
else if((Key_Mode == 4)) //中键 else if((Key_Mode == 4) || (Key_Mode == 3)) //中键
{ {
Aimadata.Sig.media_middle_key = 0x00; Aimadata.Sig.media_middle_key = 0x00;
} }
...@@ -173,7 +173,7 @@ void Key_Judgment_Service(void) ...@@ -173,7 +173,7 @@ void Key_Judgment_Service(void)
if((Key_Mode == 1) || (Key_Mode == 2)) if((Key_Mode == 1) || (Key_Mode == 2))
{ {
if(KeySendTime <= 10) if(KeySendTime <= 50)
{ {
KeySendTime++; KeySendTime++;
} }
...@@ -183,6 +183,17 @@ void Key_Judgment_Service(void) ...@@ -183,6 +183,17 @@ void Key_Judgment_Service(void)
KeySendTime = 0; KeySendTime = 0;
} }
} }
else if(Key_Mode == 3)
{
if(KeySendTime <= 4100)
{
KeySendTime++;
}
else
{
Key_Mode = 0;
}
}
else if(Key_Mode == 4) else if(Key_Mode == 4)
{ {
if(KeySendTime <= 4000) if(KeySendTime <= 4000)
......
...@@ -111,7 +111,7 @@ void Sys_Startup_Init(void) ...@@ -111,7 +111,7 @@ void Sys_Startup_Init(void)
loc_config.pfnUARTReadMsgCallBack = UART_Put2; loc_config.pfnUARTReadMsgCallBack = UART_Put2;
UART_Init(UART_RLIN32, &loc_config); UART_Init(UART_RLIN32, &loc_config);
RELAY_VBAT_MCU = 1; RELAY_VBAT_MCU = 1;
RELAY_KEY_MCU = 0; RELAY_KEY_MCU = 1;
ONE_KEY = 1; ONE_KEY = 1;
MENU_CHECK_STEP = 1; MENU_CHECK_STEP = 1;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment