Make non-initialised MIP poll work

This commit is contained in:
cpq 2022-08-21 23:35:24 +01:00
parent 786e118f06
commit d565faa75d
2 changed files with 2 additions and 0 deletions

View File

@ -670,6 +670,7 @@ static void mip_rx(struct mip_if *ifp, void *buf, size_t len) {
}
static void mip_poll(struct mip_if *ifp, uint64_t uptime_ms) {
if (ifp == NULL || ifp->driver == NULL) return;
ifp->curtime = uptime_ms;
if (ifp->ip == 0 && uptime_ms > ifp->timer) {

View File

@ -6764,6 +6764,7 @@ static void mip_rx(struct mip_if *ifp, void *buf, size_t len) {
}
static void mip_poll(struct mip_if *ifp, uint64_t uptime_ms) {
if (ifp == NULL || ifp->driver == NULL) return;
ifp->curtime = uptime_ms;
if (ifp->ip == 0 && uptime_ms > ifp->timer) {