]> rtime.felk.cvut.cz Git - eurobot/public.git/commitdiff
uolcdd: Debug messages can be configured in config.omk now
authorMichal Sojka <sojkam1@fel.cvut.cz>
Thu, 1 May 2008 02:03:53 +0000 (04:03 +0200)
committerMichal Sojka <sojkam1@fel.cvut.cz>
Thu, 1 May 2008 02:03:53 +0000 (04:03 +0200)
src/ulcdd/Makefile.omk
src/ulcdd/uoled.c

index 786862fea7c862b769e7c82cab865a2569d12b09..c1662190e4f651429cba8c3fae5a44b574930521 100644 (file)
@@ -9,3 +9,7 @@ uoled_SOURCES = uoled.c
 include_HEADERS = uoled.h oledlib.h
 
 lib_LOADLIBES = sercom
+
+
+default_CONFIG = CONFIG_DEBUG_UOLED=n
+LOCAL_CONFIG_H = uoled_config.h
index 9a79dd01cbc8c6490babfbcdc34ebc6bf73619ff..64f2a5ecb8c4d4204321165386eef48ebfa3f9fa 100644 (file)
 #include <robottype.h>
 #include <robottype_eb2008.h>
 #include "uoled.h"
+#include "uoled_config.h"
 
+#ifdef CONFIG_DEBUG_UOLED
 #define DEBUG
+#endif
 
 static struct sercom_data sercom;