Commit a2aed1b8 authored by 李俭双's avatar 李俭双

🐞 fix:增加胎压单位转换及胎压学习的按键菜单逻辑

parent 7173fbae
...@@ -310,11 +310,11 @@ void Key_Left_Short_Press(void) ...@@ -310,11 +310,11 @@ void Key_Left_Short_Press(void)
} }
else if(PageType == Page_Front_Tpms) else if(PageType == Page_Front_Tpms)
{ {
PageType == Page_Rear_Tpms; PageType = Page_Rear_Tpms;
} }
else if(PageType == Page_Rear_Tpms) else if(PageType == Page_Rear_Tpms)
{ {
PageType == Page_Front_Tpms; PageType = Page_Front_Tpms;
} }
else else
{ {
...@@ -390,7 +390,7 @@ void Key_Left_Long_Press(void) ...@@ -390,7 +390,7 @@ void Key_Left_Long_Press(void)
} }
else if(PageType == Page_Tpms_Unit) else if(PageType == Page_Tpms_Unit)
{ {
PageType == Page_Front_Tpms; PageType = Page_Front_Tpms;
} }
else if((PageType == Page_Front_Tpms) || (PageType == Page_Rear_Tpms)) else if((PageType == Page_Front_Tpms) || (PageType == Page_Rear_Tpms))
{ {
......
...@@ -20,8 +20,10 @@ typedef struct ...@@ -20,8 +20,10 @@ typedef struct
uint8_t KM_Unit; // 0 km, 1 mile uint8_t KM_Unit; // 0 km, 1 mile
uint8_t Tpms_Unit;// 0 bar, 1 psi uint8_t Tpms_Unit;// 0 bar, 1 psi
uint32_t Tcs_Val; // 0 off, 1 on uint32_t Tcs_Val; // 0 off, 1 on
uint32_t TPMS_Front_Learn; uint8_t TPMS_Front_Learn;
uint32_t TPMS_Rear_Learn; uint8_t TPMS_Rear_Learn;
uint8_t TPMS_Front_FirstLearn_Flag;
uint8_t TPMS_Rear_FirstLearn_Flag;
}_Menu_Data; }_Menu_Data;
typedef enum typedef enum
......
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