This commit is contained in:
小马_666 2025-01-05 13:13:36 +08:00
parent 0f4f284fde
commit 71baed3f01
2 changed files with 9 additions and 4 deletions

View File

@ -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)
{

View File

@ -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))
{