mirror of
https://github.com/cesanta/mongoose.git
synced 2025-08-05 21:18:32 +08:00
Make non-initialised MIP poll work
This commit is contained in:
parent
786e118f06
commit
d565faa75d
@ -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) {
|
||||
|
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user