Commit b7b0698d authored by 郑萍's avatar 郑萍

🐞 fix:自检历程加上段码更新请求函数并更改时钟段码显示函数的bug,去掉过压保护debug的调试变量

parent 961622b2
......@@ -1876,7 +1876,7 @@ _Fun_Res SEG_SET_Clock(uint8_t m_hour, uint8_t m_minute, uint8_t m_icon, uint8_t
_Fun_Res m_Res;
uint8_t Num;
uint8_t m8;
if ((m_hour >= 99u) || (m_minute >= 99u) || (m_icon > 1u) || (m_Flag1 > 1u) || (m_Flag2 > 1u))
if ((m_hour > 99u) || (m_minute > 99u) || (m_icon > 1u) || (m_Flag1 > 1u) || (m_Flag2 > 1u))
{
m_Res = EX_ERR;
}
......@@ -2644,8 +2644,6 @@ void Checkself_SEG_Display(void)
if (Checkself_SEG_step == 0)
{
Checkself_SEG_step = 0;
SEG_SET_EleDial_2SOC(1, 0);
SEG_SET_EleDial_1SOC(1, 0);
}
else
{
......
......@@ -59,7 +59,6 @@ static const monitorlib_uint16_t SysFun_Range [ 26u ] = {
2u,
0u,
};
monitorlib_uint16_t u16Voltage_KL15;
monitorlib_uint16_t Sys_Read_KL30_Voltage_F(void)
{
monitorlib_uint16_t u16Voltage;
......@@ -85,7 +84,6 @@ monitorlib_uint16_t Sys_Read_KL15_Voltage(void)
{
monitorlib_uint16_t u16Voltage;
u16Voltage = (monitorlib_uint16_t)ADC_Read_Signal(ADC_CH_KL15_VOLTAGE);
u16Voltage_KL15 = (monitorlib_uint16_t)ADC_Read_Signal(ADC_CH_KL15_VOLTAGE);
return u16Voltage;
}
......
......@@ -41,17 +41,22 @@ void Sys_20ms_Tasks(void)
void Sys_50ms_Tasks(void)
{
BU98R10_Update_Request();
LED_Driver_Scan_Refresh();
Telltales_Management();
Set_CAN_ALL_Signal();
Gauge_Service();
if ((Common_GetIgnOnTime() > 1500))
{
BU98R10_Update_Request();
}
}
void Sys_15ms_Tasks(void)
{
if ((Common_GetIgnOnTime() <= 1500) && (Common_GetIgnOnTime() > 0) && (checkself_seg_Flag == 1))
{
BU98R10_Update_Request();
Checkself_SEG_Display();
}
}
......
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