Commit 11c50e9f authored by 李俭双's avatar 李俭双

🐞 fix:代码评审问题:简化代码,不做没必要的计算

parent 229176e1
...@@ -4480,9 +4480,9 @@ uint8_t Espeed_check_SEG_step = 0; ...@@ -4480,9 +4480,9 @@ uint8_t Espeed_check_SEG_step = 0;
void SEG_Scan_SET_EspeedDial(void) void SEG_Scan_SET_EspeedDial(void)
{ {
uint16_t a = 0; uint16_t a = 0;
a = (Espeed_check_SEG_step / 10) * 500; a = (Espeed_check_SEG_step / 10) ;
SEG_SET_EspeedDial(1, a / 500); SEG_SET_EspeedDial(1, a);
} }
uint8_t check_SEG_step = 0; uint8_t check_SEG_step = 0;
......
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