diff --git a/APP/inc/delay_conf.h b/APP/inc/delay_conf.h index 1285ed4..d9115bd 100644 --- a/APP/inc/delay_conf.h +++ b/APP/inc/delay_conf.h @@ -36,10 +36,8 @@ #endif -#define DELAY_SYS_RUN_LED DELAY_MS(500) //系统指示灯延时500ms -#define DELAY_SYS_SLEEP_LED DELAY_MS(1000) //系统指示灯延时1s -#define DELAY_MB_SLAVE_POLL DELAY_MS(1) //Modbus从机轮训时间 -#define DELAY_MB_MASTER_POLL DELAY_MS(1) //Modbus主机轮训时间 +#define DELAY_SYS_RUN_LED DELAY_MS(500) +#define DELAY_SYS_SLEEP_LED DELAY_MS(1000) #endif diff --git a/APP/src/app_task.c b/APP/src/app_task.c index 96ac325..a6c92e9 100644 --- a/APP/src/app_task.c +++ b/APP/src/app_task.c @@ -80,7 +80,6 @@ void thread_entry_ModbusSlavePoll(void* parameter) while (1) { eMBPoll(); - rt_thread_delay(DELAY_MB_SLAVE_POLL); } } @@ -97,7 +96,6 @@ void thread_entry_ModbusMasterPoll(void* parameter) while (1) { eMBMasterPoll(); - rt_thread_delay(DELAY_MB_MASTER_POLL); } }