Commit ecee3ad9 authored by 何锐's avatar 何锐

feat:上电全亮程序

parent 96c4c0e8
...@@ -370,7 +370,7 @@ void BarCodeDataGet(void) ...@@ -370,7 +370,7 @@ void BarCodeDataGet(void)
{ {
memcpy(barcode_Msg,&mDataBufPtr1[6],34); memcpy(barcode_Msg,&mDataBufPtr1[6],34);
memcpy(barcode_Msg1,&mDataBufPtr1[6],34); memcpy(barcode_Msg1,&mDataBufPtr1[6],34);
copyover = 1; // copyover = 1;
} }
else else
{ {
......
...@@ -11,30 +11,30 @@ void Key_Operation_SW5(Key_Event_en_t enKeyEvent) //下一步 ...@@ -11,30 +11,30 @@ void Key_Operation_SW5(Key_Event_en_t enKeyEvent) //下一步
{ {
if ( enKeyEvent == KEY_EVENT_SHORT_PRESS ) if ( enKeyEvent == KEY_EVENT_SHORT_PRESS )
{ {
if(firstpowerflag == 2) // if(firstpowerflag == 2)
{ // {
if(saomafinish == 3) // if(saomafinish == 3)
{ // {
zhenduansendStep = 0; // zhenduansendStep = 0;
zhenduanflag = 0; // zhenduanflag = 0;
MENU_CHECK_STEP_ADD(); // MENU_CHECK_STEP_ADD();
} // }
} // }
} }
else if ( enKeyEvent == KEY_EVENT_LONG_PRESS ) else if ( enKeyEvent == KEY_EVENT_LONG_PRESS )
{ {
if(firstpowerflag == 2) // if(firstpowerflag == 2)
{ // {
if(AutoFlag == 1) // if(AutoFlag == 1)
{ // {
AutoFlag = 0; // AutoFlag = 0;
} // }
else // else
{ // {
AutoFlag = 1; // AutoFlag = 1;
} // }
} // }
} }
else else
{ {
...@@ -44,10 +44,10 @@ void Key_Operation_SW4(Key_Event_en_t enKeyEvent) //上一步 ...@@ -44,10 +44,10 @@ void Key_Operation_SW4(Key_Event_en_t enKeyEvent) //上一步
{ {
if ( enKeyEvent == KEY_EVENT_SHORT_PRESS ) if ( enKeyEvent == KEY_EVENT_SHORT_PRESS )
{ {
if(firstpowerflag == 2) // if(firstpowerflag == 2)
{ // {
MENU_CHECK_STEP_SUB(); // MENU_CHECK_STEP_SUB();
} // }
} }
else if ( enKeyEvent == KEY_EVENT_LONG_PRESS ) else if ( enKeyEvent == KEY_EVENT_LONG_PRESS )
{ {
...@@ -55,15 +55,15 @@ void Key_Operation_SW4(Key_Event_en_t enKeyEvent) //上一步 ...@@ -55,15 +55,15 @@ void Key_Operation_SW4(Key_Event_en_t enKeyEvent) //上一步
} }
else if ( enKeyEvent == KEY_EVENT_SUPER_LONG_PRESS ) else if ( enKeyEvent == KEY_EVENT_SUPER_LONG_PRESS )
{ {
if ( (LED_Waring == 1) || (UDS_Warning_Voltage == 1)) // if ( (LED_Waring == 1) || (UDS_Warning_Voltage == 1))
{ // {
; // ;
} // }
else // else
{ // {
Display_Sub( ); // Display_Sub( );
Display_TFT_Clear( ); // Display_TFT_Clear( );
} // }
} }
...@@ -76,13 +76,13 @@ void Key_Operation_SW7(Key_Event_en_t enKeyEvent) ...@@ -76,13 +76,13 @@ void Key_Operation_SW7(Key_Event_en_t enKeyEvent)
if ( enKeyEvent == KEY_EVENT_SHORT_PRESS ) if ( enKeyEvent == KEY_EVENT_SHORT_PRESS )
{ {
// upkeyflag = 1; //按键加 // upkeyflag = 1; //按键加
if(firstpowerflag == 2) // if(firstpowerflag == 2)
{ // {
if(saomafinish == 1) // if(saomafinish == 1)
{ // {
zhenduansendStep = 5; // zhenduansendStep = 5;
} // }
} // }
} }
else if ( enKeyEvent == KEY_EVENT_LONG_PRESS ) else if ( enKeyEvent == KEY_EVENT_LONG_PRESS )
{ {
...@@ -98,17 +98,17 @@ void Key_Operation_SW8(Key_Event_en_t enKeyEvent) ...@@ -98,17 +98,17 @@ void Key_Operation_SW8(Key_Event_en_t enKeyEvent)
{ {
if ( enKeyEvent == KEY_EVENT_SHORT_PRESS ) if ( enKeyEvent == KEY_EVENT_SHORT_PRESS )
{ {
if(saomafinish == 3) // if(saomafinish == 3)
{ // {
Display_TFT_Clear(); // Display_TFT_Clear();
GUI_Display_Version_Code_Service(25, 20, "Please Scan The Code ", Letter_Num_11, PCodeText_Space_size); // GUI_Display_Version_Code_Service(25, 20, "Please Scan The Code ", Letter_Num_11, PCodeText_Space_size);
firstpowerflag = 0; // firstpowerflag = 0;
saomafinish = 0; // saomafinish = 0;
} // }
else if(saomafinish == 0) // else if(saomafinish == 0)
{ // {
zhenduanflag = 1; // zhenduanflag = 1;
} // }
} }
else if ( enKeyEvent == KEY_EVENT_LONG_PRESS ) else if ( enKeyEvent == KEY_EVENT_LONG_PRESS )
{ {
...@@ -124,16 +124,16 @@ void Key_Operation_SW2(Key_Event_en_t enKeyEvent) ...@@ -124,16 +124,16 @@ void Key_Operation_SW2(Key_Event_en_t enKeyEvent)
{ {
if ( enKeyEvent == KEY_EVENT_SHORT_PRESS ) if ( enKeyEvent == KEY_EVENT_SHORT_PRESS )
{ {
if(LINE_OUT_NEG_01 == 1U) //上下ACC电 // if(LINE_OUT_NEG_01 == 1U) //上下ACC电
{ // {
LINE_OUT_NEG_01 = 0U; // LINE_OUT_NEG_01 = 0U;
Auto_ONOFF = 3; // Auto_ONOFF = 3;
} // }
else // else
{ // {
LINE_OUT_NEG_01 = 1U; // LINE_OUT_NEG_01 = 1U;
Auto_ONOFF = 0; // Auto_ONOFF = 0;
} // }
// downkeyflag = 1; //数字减 // downkeyflag = 1; //数字减
} }
else if ( enKeyEvent == KEY_EVENT_LONG_PRESS ) else if ( enKeyEvent == KEY_EVENT_LONG_PRESS )
...@@ -166,27 +166,27 @@ void Key_Operation_SW3(Key_Event_en_t enKeyEvent) ...@@ -166,27 +166,27 @@ void Key_Operation_SW3(Key_Event_en_t enKeyEvent)
// Confirmkeycount == 0; // Confirmkeycount == 0;
// mimayanzhengjieguo = 0; // mimayanzhengjieguo = 0;
// } // }
if(firstpowerflag == 2) // if(firstpowerflag == 2)
{ // {
if(clearOdoFlag == 0) // if(clearOdoFlag == 0)
{ // {
clearOdoFlag = 1; // clearOdoFlag = 1;
} // }
else // else
{ // {
queren = 1; // queren = 1;
} // }
} // }
} }
else if ( enKeyEvent == KEY_EVENT_LONG_PRESS ) else if ( enKeyEvent == KEY_EVENT_LONG_PRESS )
{ {
} }
else if ( enKeyEvent == KEY_EVENT_SUPER_LONG_PRESS ) else if ( enKeyEvent == KEY_EVENT_SUPER_LONG_PRESS )
{ {
if(Get_Display_Type( ) == 2) // if(Get_Display_Type( ) == 2)
{ // {
MENU_CHECK_STEP_SUB( ); // MENU_CHECK_STEP_SUB( );
} // }
} }
else else
{ {
...@@ -197,17 +197,17 @@ void Key_Operation_SW1(Key_Event_en_t enKeyEvent) //自动下电模式 ...@@ -197,17 +197,17 @@ void Key_Operation_SW1(Key_Event_en_t enKeyEvent) //自动下电模式
/*清零ODO*/ /*清零ODO*/
if ( enKeyEvent == KEY_EVENT_SHORT_PRESS ) if ( enKeyEvent == KEY_EVENT_SHORT_PRESS )
{ {
if(firstpowerflag == 2) // if(firstpowerflag == 2)
{ // {
if(Auto_ONOFF != 0) // if(Auto_ONOFF != 0)
{ // {
Auto_ONOFF = 0; // Auto_ONOFF = 0;
} // }
else // else
{ // {
Auto_ONOFF = 1; // Auto_ONOFF = 1;
} // }
} // }
} }
else if ( enKeyEvent == KEY_EVENT_LONG_PRESS ) else if ( enKeyEvent == KEY_EVENT_LONG_PRESS )
...@@ -215,10 +215,10 @@ void Key_Operation_SW1(Key_Event_en_t enKeyEvent) //自动下电模式 ...@@ -215,10 +215,10 @@ void Key_Operation_SW1(Key_Event_en_t enKeyEvent) //自动下电模式
} }
else if ( enKeyEvent == KEY_EVENT_SUPER_LONG_PRESS ) else if ( enKeyEvent == KEY_EVENT_SUPER_LONG_PRESS )
{ {
if(Get_Display_Type( ) == 2) // if(Get_Display_Type( ) == 2)
{ // {
MENU_CHECK_STEP_ADD( ); // MENU_CHECK_STEP_ADD( );
} // }
} }
else else
{ {
......
...@@ -124,6 +124,8 @@ void Sys_Startup_Init(void) ...@@ -124,6 +124,8 @@ void Sys_Startup_Init(void)
/*上电扫码校验功能如果需要扫码校验注释掉firstpowerflag = 2,打开上面两行的注释即可*/ /*上电扫码校验功能如果需要扫码校验注释掉firstpowerflag = 2,打开上面两行的注释即可*/
firstpowerflag = 2; firstpowerflag = 2;
saomafinish = 3; saomafinish = 3;
MENU_CHECK_STEP = 10;
} }
/*********************************************************************** /***********************************************************************
......
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