From 71baed3f01f5de7c8438d334589b1e0fd6ee143b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B0=8F=E9=A9=AC=5F666?= <13089258+pony-six-hundred-and-sixty-six@user.noreply.gitee.com> Date: Sun, 5 Jan 2025 13:13:36 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9A=82=E5=AD=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- bsp/src/at_device_ml307.c | 9 +++++++-- bsp/src/bsp_led.c | 4 ++-- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/bsp/src/at_device_ml307.c b/bsp/src/at_device_ml307.c index 750bd41..788fa86 100644 --- a/bsp/src/at_device_ml307.c +++ b/bsp/src/at_device_ml307.c @@ -2,7 +2,7 @@ * @Author : stark1898y 1658608470@qq.com * @Date : 2024-09-04 13:33:49 * @LastEditors: mbw && 1600520629@qq.com - * @LastEditTime: 2025-01-05 11:10:16 + * @LastEditTime: 2025-01-05 13:03:00 * @FilePath: \ble_bjq_ch303rct6_ml307\bsp\src\at_device_ml307.c * @Description : * @@ -1303,7 +1303,12 @@ static int ml307_init(struct at_device *device) } if (ml307->power_status_pin != -1) { - rt_pin_mode(ml307->power_status_pin, PIN_MODE_INPUT); + GPIO_InitTypeDef GPIO_InitStructure; + GPIO_InitStructure.GPIO_Speed = GPIO_Speed_50MHz; + GPIO_InitStructure.GPIO_Mode = GPIO_Mode_IN_FLOATING; + GPIO_InitStructure.GPIO_Pin = GPIO_Pin_6; + GPIO_Init(GPIOB, &GPIO_InitStructure); + // rt_pin_mode(ml307->power_status_pin, PIN_MODE_INPUT); } if (ml307->rst_pin != -1) { diff --git a/bsp/src/bsp_led.c b/bsp/src/bsp_led.c index 2bdb828..db3b934 100644 --- a/bsp/src/bsp_led.c +++ b/bsp/src/bsp_led.c @@ -2,7 +2,7 @@ * @Author: mbw * @Date: 2024-11-30 15:46:21 * @LastEditors: mbw && 1600520629@qq.com - * @LastEditTime: 2024-12-05 16:49:31 + * @LastEditTime: 2025-01-05 13:12:43 * @FilePath: \ble_bjq_ch303rct6_ml307\bsp\src\bsp_led.c * @Description: * @@ -52,7 +52,7 @@ static void BSP_Led_thread_entry(void *param) } } #endif - if (SysControl.status == kNormalDetectionEvents) + if ((SysControl.status == kNormalDetectionEvents)||(SysControl.status == KMuteEvent)) { if ((ml307_conncet_tcp_flag)) {