Commit 1ead4425 authored by 李俭双's avatar 李俭双

🐞 fix:修改胎压单位转换时的显示样式

parent 3a204048
......@@ -1370,16 +1370,33 @@ void SEG_SET_TPMS_NUM(uint8_t m_Flag, uint16_t m_NUM1, uint16_t m_NUM2, uint8_t
{
if (Get_Current_PageType() == Page_Tpms_Unit)
{
if(FLASH_SYNC_1Hz)
if (m_Unit == 0)
{
IC2_SEG109 = IC_SEG_ON;
IC2_SEG110 = IC_SEG_ON;
if(FLASH_SYNC_1Hz)
{
IC2_SEG109 = IC_SEG_OFF;
IC2_SEG110 = IC_SEG_ON;
}
else
{
IC2_SEG109 = IC_SEG_OFF;
IC2_SEG110 = IC_SEG_OFF;
}
}
else
{
IC2_SEG109 = IC_SEG_OFF;
IC2_SEG110 = IC_SEG_OFF;
if(FLASH_SYNC_1Hz)
{
IC2_SEG109 = IC_SEG_ON;
IC2_SEG110 = IC_SEG_OFF;
}
else
{
IC2_SEG109 = IC_SEG_OFF;
IC2_SEG110 = IC_SEG_OFF;
}
}
}
else
{
......
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