逻辑修改
This commit is contained in:
1 parent
c0f455e413
commit
577092a4f9
10 files changed
+22
-21
No files matched your search
@@ -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);
|
||||
}
|
||||
}
|
||||
// 清理
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in new issue
Block a user