逻辑修改

This commit is contained in:
sc committed 2025-12-01 23:57:12 +08:00
1 parent c0f455e413
commit 577092a4f9
10 files changed
+22 -21

No files matched your search

+1 -1
View File
@@ -76,7 +76,7 @@ void uart_thread_entry(void *parameter)
// 等待处理完成
if (rt_sem_take(req->sem, rt_tick_from_millisecond(100)) >= RT_EOK)
{
rs485_send(hinst, req->output, req->output_len);
if(req->output_len>0) rs485_send(hinst, req->output, req->output_len);
}
}
// 清理
+2 -2
View File
@@ -7,8 +7,8 @@
char *DATA_dat;
char DATA_machins[3];
char DATA_api[5];
char *machine_name = "Q109";
char machine_ID[3] = "23";
char *machine_name = "828";
char machine_ID[3] = "1";
// 状态标志
char MACHINE_ERR = 0;
+1 -1
View File
@@ -29,7 +29,7 @@ extern "C" {
#endif
#ifndef DB_MAX_WAITING_MS
#define DB_MAX_WAITING_MS (5000) /**< 命令最大等待时间(毫秒),默认 5 秒 */
#define DB_MAX_WAITING_MS (500) /**< 命令最大等待时间(毫秒),默认 5 秒 */
#endif
#ifndef DB_QUEUE_SIZE