浏览代码

测试模式不限制功率

Ye Jin 5 月之前
父节点
当前提交
c4aa15d4d8
共有 1 个文件被更改,包括 4 次插入1 次删除
  1. 4 1
      User project/3.BasicFunction/Source/canAppl.c

+ 4 - 1
User project/3.BasicFunction/Source/canAppl.c

@@ -1078,7 +1078,10 @@ void Can_GearSt_switch(void)
     if (cp_stBikeRunInfoPara.uwBikeGear != cp_stBikeRunInfoPara.uwBikeGearLast)
     {
         cp_stBikeRunInfoPara.blGearStUpdate = TRUE;
-        scm_voLimit_Power(cp_stBikeRunInfoPara.uwBikeGear, ass_uwPwrCurLim, ass_stCalCoef.ucMaxCurrentGain);//功率限制
+        if(MC_WorkMode != 1)
+        {
+            scm_voLimit_Power(cp_stBikeRunInfoPara.uwBikeGear, ass_uwPwrCurLim, ass_stCalCoef.ucMaxCurrentGain);//功率限制
+        }
     }
     else
     {