mirror of
https://github.com/cesanta/mongoose.git
synced 2026-10-09 16:52:09 +07:00
Make non-initialised MIP poll work
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user