From 0c65a4db9c033c62035e0545a8eff43abf1fcdd1 Mon Sep 17 00:00:00 2001 From: Mohamed Seliem Date: Thu, 1 Dec 2016 20:35:29 +0200 Subject: [PATCH] update contiki-conf to avoid redfintion of UIP_CONF_RECEIVE_WINDOW in case of compiling any example that contains the definition of UIP_CONF_RECEIVE_WINDOW over Z1 mote. i receive this warning: In file included from ../../../core/./contiki.h:38:0, from ../../../core/./contiki-net.h:37, from httpd-simple.c:43: ../../../platform/z1/./contiki-conf.h:225:0: warning: "UIP_CONF_RECEIVE_WINDOW" redefined ./project-conf.h:60:0: note: this is the location of the previous definition --- platform/z1/contiki-conf.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/platform/z1/contiki-conf.h b/platform/z1/contiki-conf.h index 536b51913..af8b88cbb 100644 --- a/platform/z1/contiki-conf.h +++ b/platform/z1/contiki-conf.h @@ -222,7 +222,9 @@ #define UIP_CONF_DHCP_LIGHT #define UIP_CONF_LLH_LEN 0 +#ifndef UIP_CONF_RECEIVE_WINDOW #define UIP_CONF_RECEIVE_WINDOW 48 +#endif #define UIP_CONF_TCP_MSS 48 #define UIP_CONF_MAX_CONNECTIONS 4 #define UIP_CONF_MAX_LISTENPORTS 8