Explorar el Código

新思维转把不分档

Ye Jin hace 5 meses
padre
commit
14fa5cab5b
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      3.BasicFunction/Source/uart_Lidian2.c

+ 1 - 1
3.BasicFunction/Source/uart_Lidian2.c

@@ -397,7 +397,7 @@ void Lidian2_XinSiWeiLimitThrottleSpd(UBYTE throttleGear, UWORD speedPWM)
     ass_CurLimCoef.ulBikeSpdDeltInv = (1 << 20) / (ass_CurLimCoef.uwBikeSpdThresHold2 - ass_CurLimCoef.uwBikeSpdThresHold1);
 
     //转把有分档和不分档
-    if(throttleGear == 1)
+    if(throttleGear == 0)
     {
         speedPWM = 255;
     }