Skip to content

Commit

Permalink
1、【修改】FreeModbus主机及从机定时器名称不规范的问题。
Browse files Browse the repository at this point in the history
Signed-off-by: armink <[email protected]>
  • Loading branch information
armink committed Jan 5, 2015
1 parent 092cee8 commit 66d377b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion FreeModbus/port/rtt/porttimer.c
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ static void timer_timeout_ind(void* parameter);
/* ----------------------- Start implementation -----------------------------*/
BOOL xMBPortTimersInit(USHORT usTim1Timerout50us)
{
rt_timer_init(&timer, "plc_recv_timer",
rt_timer_init(&timer, "slave timer",
timer_timeout_ind, /* bind timeout callback function */
RT_NULL,
(50*usTim1Timerout50us)/(1000*1000/RT_TICK_PER_SECOND),
Expand Down
2 changes: 1 addition & 1 deletion FreeModbus/port/rtt/porttimer_m.c
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ BOOL xMBMasterPortTimersInit(USHORT usTimeOut50us)
/* backup T35 ticks */
usT35TimeOut50us = usTimeOut50us;

rt_timer_init(&timer, "plc_recv_timer",
rt_timer_init(&timer, "master timer",
timer_timeout_ind, /* bind timeout callback function */
RT_NULL,
(50 * usT35TimeOut50us) / (1000 * 1000 / RT_TICK_PER_SECOND),
Expand Down

0 comments on commit 66d377b

Please sign in to comment.