소스 검색

新思维转把不分档

Ye Jin 4 달 전
부모
커밋
14fa5cab5b
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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;
     }