From b3b3fe422663843f2aafd7f9e3d28358e28347d5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=B8=8D=E5=90=83=E6=B2=B9=E7=82=B8=E9=B8=A1?= <1425962791@qq.com> Date: Fri, 13 Feb 2026 14:13:06 +0800 Subject: [PATCH] =?UTF-8?q?=E5=87=8F=E5=B0=91=E7=AD=89=E5=BE=85=E6=97=B6?= =?UTF-8?q?=E9=97=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Power_Pico/User/Tasks/Src/user_PDUFPTask.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Power_Pico/User/Tasks/Src/user_PDUFPTask.c b/Power_Pico/User/Tasks/Src/user_PDUFPTask.c index 02694cf..2ea07a8 100644 --- a/Power_Pico/User/Tasks/Src/user_PDUFPTask.c +++ b/Power_Pico/User/Tasks/Src/user_PDUFPTask.c @@ -25,7 +25,7 @@ static void _timer_callback(void *argument) osMessageQueuePut(PD_handle_event_MsgQueue, &ready, 0, 1); time_count = 0; osTimerStop(PD_UFP_Task_timer_id); - } else if(time_count >= 10) { // 10秒超时 + } else if(time_count >= 5) { // 5秒超时 ready = PD_EVT_PPS_FAILED; osMessageQueuePut(PD_handle_event_MsgQueue, &ready, 0, 1); time_count = 0; @@ -57,7 +57,7 @@ void PDUFPTask(void *argument) PD_protocol_init(&app_pd.protocol); PD_protocol_set_power_option(&app_pd.protocol, PD_POWER_OPTION_MAX_5V); PD_protocol_set_PPS(&app_pd.protocol, PPS_V(5.0), PPS_A(1.0), false); // 初始PPS 5V 1A - send_power_request(); + // send_power_request(); if(osTimerIsRunning(PD_UFP_Task_timer_id)) { osTimerStop(PD_UFP_Task_timer_id); }