mirror of
https://github.com/espressif/ESP8266_RTOS_SDK.git
synced 2025-06-15 10:47:59 +08:00
Merge branch 'feature/fix_wifi_send_error' into 'master'
Fix WIFI send error See merge request sdk/ESP8266_RTOS_SDK!330
This commit is contained in:
@ -147,12 +147,12 @@ static int8_t low_level_output(struct netif* netif, struct pbuf* p)
|
|||||||
p = ethernetif_transform_pbuf(p);
|
p = ethernetif_transform_pbuf(p);
|
||||||
if (!p) {
|
if (!p) {
|
||||||
LWIP_DEBUGF(NETIF_DEBUG, ("low_level_output: lack memory\n"));
|
LWIP_DEBUGF(NETIF_DEBUG, ("low_level_output: lack memory\n"));
|
||||||
goto exit;
|
goto exit; // return ERR_OK
|
||||||
}
|
}
|
||||||
|
|
||||||
if (IS_IRAM(p->payload)) {
|
if (IS_IRAM(p->payload)) {
|
||||||
LWIP_DEBUGF(NETIF_DEBUG, ("low_level_output: data in IRAM\n"));
|
LWIP_DEBUGF(NETIF_DEBUG, ("low_level_output: data in IRAM\n"));
|
||||||
goto error;
|
goto error; // return ERR_OK
|
||||||
}
|
}
|
||||||
|
|
||||||
aio.fd = (int)netif->state;
|
aio.fd = (int)netif->state;
|
||||||
@ -167,10 +167,14 @@ static int8_t low_level_output(struct netif* netif, struct pbuf* p)
|
|||||||
* header, meaning we should not pass target low-level address here.
|
* header, meaning we should not pass target low-level address here.
|
||||||
*/
|
*/
|
||||||
err = esp_aio_sendto(&aio, NULL, 0);
|
err = esp_aio_sendto(&aio, NULL, 0);
|
||||||
if (err != ERR_OK)
|
if (err != ERR_OK) {
|
||||||
goto error;
|
if (err == ERR_MEM)
|
||||||
|
err = ERR_OK;
|
||||||
|
|
||||||
return err;
|
goto error;
|
||||||
|
}
|
||||||
|
|
||||||
|
return ERR_OK;
|
||||||
|
|
||||||
// signal that packet should be sent();
|
// signal that packet should be sent();
|
||||||
|
|
||||||
@ -184,7 +188,7 @@ static int8_t low_level_output(struct netif* netif, struct pbuf* p)
|
|||||||
error:
|
error:
|
||||||
pbuf_free(p);
|
pbuf_free(p);
|
||||||
exit:
|
exit:
|
||||||
return ERR_OK;
|
return err;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Reference in New Issue
Block a user