AnsweredAssumed Answered

lwIP sys_now() function bug

Question asked by biafra on Dec 15, 2017
Latest reply on Dec 20, 2017 by Daniel Chen

Hi everyone,

 

It seems I've found in the sys_now() function of the lwIP library:

 

u32_t sys_now(void)
{
   return xTaskGetTickCount();
}

 

It returns the number of ticks from startup, not the number of milliseconds!

 

It should be:

    return xTaskGetTickCount() * portTICK_PERIOD_MS;

 

Many thanks

Biafra

Outcomes