PeterBorisenko / w5500-lwip-freertos

RTOS-based binding for W5500 and LwIp
22 stars 6 forks source link

Fixed link up detection #3

Closed madsci77 closed 11 months ago

madsci77 commented 1 year ago

Fixed problem with "link up" transition being missed when network traffic is present. Previously it would never check the hardware link state as long as a packet was received within the timeout interval, leaving outbound packets unable to be sent.

Also modified the xSemaphoreTake() call to use the pdMS_TO_TICKS macro so the timeout value has more meaning. There's no way of knowing what the original intended timeout duration was.