mirror of
https://github.com/cesanta/mongoose.git
synced 2026-11-03 13:28:44 +00:00
Make non-initialised MIP poll work
This commit is contained in:
1 parent
786e118f06
commit
d565faa75d
2 files changed
+2
No files matched your search
@@ -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