Fix initialization of mqtt example IP

This commit is contained in:
Dirk Ziegelmeier 2018-11-05 20:06:53 +01:00
parent 0df1559056
commit 93c3cfd2b1

View File

@ -37,7 +37,7 @@
*/ */
#ifndef LWIP_MQTT_EXAMPLE_IPADDR_INIT #ifndef LWIP_MQTT_EXAMPLE_IPADDR_INIT
#if LWIP_IPV4 #if LWIP_IPV4
#define LWIP_MQTT_EXAMPLE_IPADDR_INIT = IPADDR4_INIT(IPADDR_LOOPBACK) #define LWIP_MQTT_EXAMPLE_IPADDR_INIT = IPADDR4_INIT(PP_HTONL(IPADDR_LOOPBACK))
#else #else
#define LWIP_MQTT_EXAMPLE_IPADDR_INIT #define LWIP_MQTT_EXAMPLE_IPADDR_INIT
#endif #endif