fix(lwip): Fix UDP sync send error

This commit is contained in:
Dong Heng
2018-08-28 13:34:48 +08:00
parent 4edc6f083b
commit c5d20f94f3
3 changed files with 44 additions and 34 deletions

View File

@@ -303,7 +303,7 @@ static int8_t low_level_output(struct netif* netif, struct pbuf* p)
*/
err = esp_aio_sendto(&aio, NULL, 0);
#if ESP_UDP
udp_sync_set_ret(err);
udp_sync_set_ret(netif, err);
#endif
if (err != ERR_OK) {
if (err == ERR_MEM){