Fix compile of api_lib.c when LWIP_MPU_COMPATIBLE is enabled

This commit is contained in:
Dirk Ziegelmeier 2016-04-25 20:50:14 +02:00
parent bb908366a5
commit 2be86fbc3e

View File

@ -200,7 +200,7 @@ netconn_getaddr(struct netconn *conn, ip_addr_t *addr, u16_t *port, u8_t local)
API_MSG_VAR_REF(msg).conn = conn;
API_MSG_VAR_REF(msg).msg.ad.local = local;
#if LWIP_MPU_COMPATIBLE
TCPIP_APIMSG(msg, lwip_netconn_do_getaddr, err);
err = netconn_apimsg(lwip_netconn_do_getaddr, &API_MSG_VAR_REF(msg));
*addr = msg->msg.ad.ipaddr;
*port = msg->msg.ad.port;
#else /* LWIP_MPU_COMPATIBLE */