diff --git a/examples/paho-mqtt/Makefile b/examples/paho-mqtt/Makefile index 744304d35f..befde6263d 100644 --- a/examples/paho-mqtt/Makefile +++ b/examples/paho-mqtt/Makefile @@ -33,8 +33,9 @@ USEMODULE += ps USEMODULE += netdev_default USEPKG += paho-mqtt -# paho-mqtt depends on TCP support, choose the stack you want +# paho-mqtt depends on TCP support, choose which stacks you want LWIP_IPV4 ?= 0 +LWIP_IPV6 ?= 1 ifneq (0,$(LWIP_IPV4)) USEMODULE += ipv4_addr @@ -42,9 +43,6 @@ ifneq (0,$(LWIP_IPV4)) USEMODULE += lwip_ipv4 USEMODULE += lwip_dhcp_auto CFLAGS += -DETHARP_SUPPORT_STATIC_ENTRIES=1 - LWIP_IPV6 ?= 0 -else - LWIP_IPV6 ?= 1 endif ifneq (0,$(LWIP_IPV6))