Commit f068ae83 authored by 李鑫3's avatar 李鑫3

feat:添加上电一轮检测到一次或多次都只加1

parent 76b4e4f7
......@@ -75,7 +75,7 @@ void Sys_Run_Mode_5ms_Tasks_Group(void)
/*==============================================================================
10ms����ִ������ ��0��
------------------------------------------------------------------------------*/
uint8_t IG_on=0;
void Sys_Run_Mode_10ms_Tasks_Group(void)
{
Key_Service();
......@@ -89,7 +89,11 @@ void Sys_Run_Mode_10ms_Tasks_Group(void)
backsend();
TX_RX_485_service();
EE_Read();
if(IG_on==0)
{
EE_Read();
}
......@@ -148,6 +152,7 @@ void Sys_Run_Mode_100ms_Tasks_Group(void)
LINE_OUT_NEG_04 = 0;
LINE_OUT_NEG_02 = 0;
LINE_OUT_NEG_03 = 0;
IG_on=1;
}
else if(delay222==150)
{
......@@ -158,6 +163,7 @@ void Sys_Run_Mode_100ms_Tasks_Group(void)
delay222=0;
ee_flag=0;
ee=0;
IG_on=0;
}
......
......@@ -22,5 +22,5 @@ void Sys_Exact_100ms_Tasks(void);
void Sys_Enter_Sleep_Mode(void);
uint16_t Sys_Get_ms_Rolling_Counter(void);
extern uint8_t ee_flag;
extern uint8_t IG_on;
#endif
\ No newline at end of file
......@@ -641,14 +641,14 @@ const uint16_t ODODigitNum09PosX22 []= {165,155,145,135,125,115};
void EE_Read(void)
{
if((EE_Flag!=64))
if((EE_Flag!=16))
{
if((ee_flag==1) && (LINE_OUT_NEG_04 == 1))
{
eenum++;
GUI_General_Digit_Display(eenum, Num_15, 6, 5, ODODigitNum09PosX22, 40+25);
IG_on=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