1、【删除】FreeModbus主从机轮训延时,提升系统实时性。
Signed-off-by: armink <armink.ztl@gmail.com>
This commit is contained in:
parent
b48c07303d
commit
59ea5bb1ab
|
@ -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
|
||||
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue