From: kyz Date: Mon, 21 Sep 2026 06:11:17 +0000 (+0800) Subject: 修复继电器提前关闭问题 X-Git-Url: http://kyz.pub/gitweb/?a=commitdiff_plain;h=0eb2f197a5e9a23853d33a6b524c5a46c5e1b960;p=yn%2Fboxinlaohua_board.git 修复继电器提前关闭问题 --- diff --git a/Aging_app/freertos/src/task_lists.c b/Aging_app/freertos/src/task_lists.c index 9aa40cc..60e35c8 100644 --- a/Aging_app/freertos/src/task_lists.c +++ b/Aging_app/freertos/src/task_lists.c @@ -233,6 +233,14 @@ static void queueCommandTask(void *parames) void parameter_task_exit(void); parameter_task_exit(); } + + { + //Èç¹ûƽ̨ÏÈ·¢ËÍstopÖ¸ÁÔÙ·¢ËÍopen£¬»áµ¼Ö¼̵çÆ÷´ò¿ª2Ãëºó¾Í»áÂíÉÏ¹Ø±Õ + //ÕâÀïÇå³ýstopÐźţ¬À´±ÜÃâÕâ¸öÎÊÌâ³öÏÖ£¬ 2026/9/21 kyz + xSemaphoreTake(xStopSemaphore1, 0); + xSemaphoreTake(xStopSemaphore2, 0); + } + RTT_DEBUG_INFO("Parameter task exit requested"); Control_ElectricRelay(1); vTaskResume(Gather_Handler1);