From 35ea25151664f434bf6498d2482b3060decf40c2 Mon Sep 17 00:00:00 2001 From: Kaspar Schleiser Date: Fri, 20 Oct 2017 23:19:42 +0200 Subject: [PATCH] gnrc: lwmac: DEBUG fix --- sys/net/gnrc/link_layer/lwmac/timeout.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/sys/net/gnrc/link_layer/lwmac/timeout.c b/sys/net/gnrc/link_layer/lwmac/timeout.c index ed0fd70bdc..192289236f 100644 --- a/sys/net/gnrc/link_layer/lwmac/timeout.c +++ b/sys/net/gnrc/link_layer/lwmac/timeout.c @@ -26,8 +26,7 @@ #define ENABLE_DEBUG (0) #include "debug.h" -#if ENABLE_DEBUG -char *lwmac_timeout_names[] = { +static const char *lwmac_timeout_names[] = { [GNRC_LWMAC_TIMEOUT_DISABLED] = "DISABLED", [GNRC_LWMAC_TIMEOUT_WR] = "WR", [GNRC_LWMAC_TIMEOUT_NO_RESPONSE] = "NO_RESPONSE", @@ -35,7 +34,6 @@ char *lwmac_timeout_names[] = { [GNRC_LWMAC_TIMEOUT_WAIT_DEST_WAKEUP] = "WAIT_FOR_DEST_WAKEUP", [GNRC_LWMAC_TIMEOUT_WAKEUP_PERIOD] = "WAKEUP_PERIOD", }; -#endif static inline void _lwmac_clear_timeout(gnrc_lwmac_timeout_t *timeout) {