From 6d1a6bbceb3e3374092d5ccb091d5cb043cef7a7 Mon Sep 17 00:00:00 2001 From: kyz Date: Thu, 22 Jan 2026 17:24:47 +0800 Subject: [PATCH] =?utf8?q?=E4=BF=AE=E5=A4=8D=E6=8B=A7=E7=B4=A7=E5=AE=8C?= =?utf8?q?=E6=88=90=E6=97=B6=E6=9C=AA=E6=AD=A3=E5=B8=B8=E5=85=B3=E9=97=AD?= =?utf8?q?=E5=8E=8B=E5=8A=9B=E9=98=80=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- QiDong/System/WrenchManage.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/QiDong/System/WrenchManage.c b/QiDong/System/WrenchManage.c index 6368282..bf0728e 100644 --- a/QiDong/System/WrenchManage.c +++ b/QiDong/System/WrenchManage.c @@ -573,9 +573,12 @@ void WrenchManage_MainTask(void) //״̬ }else{ target_pressure = 0; } - temppress = target_pressure; - output_duty = getOutDutyData_from_pressure(target_pressure); + if( machine_step >= 3 && machine_step <=5){ + output_duty = 0; + }else{ + output_duty = getOutDutyData_from_pressure(target_pressure); + } if( TIM_GetCapture2(TIM4) != output_duty){ TIM_SetCompare2(TIM4, output_duty); } -- 2.34.1