Commit 1cd7f1c4 authored by 陈家乐's avatar 陈家乐

🐞 fix:62034 450外发异常跳变,胎压数据处理过程会被中断打断,导致外发错误,增加中继变量

parent 2e591b36
...@@ -65,6 +65,8 @@ void Can_341_Receive(void) ...@@ -65,6 +65,8 @@ void Can_341_Receive(void)
Can_341_Flg = 1; Can_341_Flg = 1;
} }
uint32_t Relaying_Rear_Press_Value = 0;
uint32_t Relaying_Front_Press_Value = 0;
void Data_TPMS_Processing_Service ( void ) void Data_TPMS_Processing_Service ( void )
{ {
uint16_t Front_TPMS = 0; uint16_t Front_TPMS = 0;
...@@ -516,6 +518,10 @@ void Data_TPMS_Processing_Service ( void ) ...@@ -516,6 +518,10 @@ void Data_TPMS_Processing_Service ( void )
TPMS.Rear_Press_Value = 0; TPMS.Rear_Press_Value = 0;
TPMS.TPMS_Warning = 0; TPMS.TPMS_Warning = 0;
} }
Relaying_Rear_Press_Value = TPMS.Rear_Press_Value;
Relaying_Front_Press_Value = TPMS.Front_Press_Value;
} }
uint32_t Data_Bar_To_Psi (uint32_t bar) uint32_t Data_Bar_To_Psi (uint32_t bar)
{ {
...@@ -594,7 +600,7 @@ uint16_t Get_Rear_TPMS_Sig_Value (void) ...@@ -594,7 +600,7 @@ uint16_t Get_Rear_TPMS_Sig_Value (void)
uint16_t Get_Rear_TPMS_TX (void) uint16_t Get_Rear_TPMS_TX (void)
{ {
uint16_t value = 0; uint16_t value = 0;
value = (uint16_t)(Data_Bar_To_Psi(TPMS.Rear_Press_Value) / 100); value = (uint16_t)(Data_Bar_To_Psi(Relaying_Rear_Press_Value) / 100);
if(value > 990) if(value > 990)
{ {
value = 990; value = 990;
...@@ -604,7 +610,7 @@ uint16_t Get_Rear_TPMS_TX (void) ...@@ -604,7 +610,7 @@ uint16_t Get_Rear_TPMS_TX (void)
uint16_t Get_Front_TPMS_TX (void) uint16_t Get_Front_TPMS_TX (void)
{ {
uint16_t value = 0; uint16_t value = 0;
value = (uint16_t)(Data_Bar_To_Psi(TPMS.Front_Press_Value) / 100); value = (uint16_t)(Data_Bar_To_Psi(Relaying_Front_Press_Value) / 100);
if(value > 990) if(value > 990)
{ {
value = 990; value = 990;
......
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