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.
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.