Commit 213e4beb authored by 郑萍's avatar 郑萍

🐞 fix:54658 【豪进750TFT】【车速】车速数值显示车速换算错误四舍五入去掉

parent e21755e6
...@@ -339,10 +339,10 @@ void Data_Vehicle_Speed_Processing_Service(void) ...@@ -339,10 +339,10 @@ void Data_Vehicle_Speed_Processing_Service(void)
{ {
VSpeedCal *= 105; VSpeedCal *= 105;
VSpeedCal /= 100; VSpeedCal /= 100;
if((VSpeedCal % 10) >= 5) // if((VSpeedCal % 10) >= 5)
{ // {
VSpeedCal += 5; /* 四舍五入 */ // VSpeedCal += 5; /* 四舍五入 */
} // }
DataVSpeedDisp = ( uint16_t )VSpeedCal; DataVSpeedDisp = ( uint16_t )VSpeedCal;
} }
else 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