Skip to content

Commit

Permalink
Fix nuttx/porttimer.c:71:24: error: a function declaration without a …
Browse files Browse the repository at this point in the history
…prototype is deprecated

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
  • Loading branch information
xiaoxiang781216 authored and GUIDINGLI committed Dec 11, 2023
1 parent f28797c commit d6a5307
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions modbus/nuttx/porttimer.c
Original file line number Diff line number Diff line change
Expand Up @@ -68,12 +68,12 @@ bool xMBPortTimersInit(uint16_t usTim1Timerout50us)
return xMBPortSerialSetTimeout(ulTimeOut);
}

void xMBPortTimersClose()
void xMBPortTimersClose(void)
{
/* Does not use any hardware resources. */
}

void vMBPortTimerPoll()
void vMBPortTimerPoll(void)
{
uint32_t ulDeltaMS;
struct timeval xTimeCur;
Expand Down Expand Up @@ -101,15 +101,15 @@ void vMBPortTimerPoll()
}
}

void vMBPortTimersEnable()
void vMBPortTimersEnable(void)
{
int res = gettimeofday(&xTimeLast, NULL);

DEBUGASSERT(res == 0);
bTimeoutEnable = true;
}

void vMBPortTimersDisable()
void vMBPortTimersDisable(void)
{
bTimeoutEnable = false;
}

0 comments on commit d6a5307

Please sign in to comment.