Fixed Ethernet lwIP netif error indication

This commit is contained in:
Ondrej Kosta
2022-01-11 16:40:39 +01:00
committed by BOT
parent 7db3d28187
commit c69b4c817b
2 changed files with 5 additions and 4 deletions

View File

@@ -134,11 +134,12 @@ static err_t ethernet_low_level_output(struct netif *netif, struct pbuf *p)
pbuf_free(q);
}
/* Check error */
if (unlikely(ret != ESP_OK)) {
return ERR_ABRT;
} else {
if (likely(ret == ESP_OK)) {
return ERR_OK;
} else if (ret == ESP_ERR_NO_MEM) {
return ERR_MEM;
}
return ERR_IF;
}
/**