@@ -106,6 +106,7 @@ static rt_err_t dtu_input(rt_device_t dev, rt_size_t size)
{
/* 消息队列满 */
rt_kprintf("message queue full!\n");
+ rt_mq_control(&rx_mq_dtu, RT_IPC_CMD_RESET, RT_NULL); // 清空队列
}
return result;
@@ -119,6 +119,7 @@ static rt_err_t uart_input(rt_device_t dev, rt_size_t size)
LOG_I("hmi message queue full!\n");
+ rt_mq_control(&rx_mq, RT_IPC_CMD_RESET, RT_NULL); // 清空队列
@@ -33,8 +33,8 @@
#include "sys_config.h"
#include <easyflash.h>
-#define BL_VERSION "1.1.4"
-#define COMPILE "20230901"
+#define BL_VERSION "1.1.5"
+#define COMPILE "20250428"
#define RTU_DTU GET_PIN(B,13)
#define Beep GET_PIN(B, 4)
@@ -48,7 +48,7 @@
#endif
#ifndef RT_FOTA_ALGO_BUFF_SIZE
-#define RT_FOTA_ALGO_BUFF_SIZE 4096
+#define RT_FOTA_ALGO_BUFF_SIZE 2048 //2025-0428 CHANGE 2048
/**
@@ -1,4 +1,11 @@
+
# 版本说明
#define BL_VERSION "1.1.4"
#define COMPILE "20230901"
- 1. rt_fota.c中880行增加__set_CONTROL(0);