Fix compilation problem in case of TARGET_LOGGING_DISABLE turned on and TARGET_DEBUG_DISABLE turned off
authorAndrey Skvortsov <andrej.skvortzov@gmail.com>
Thu, 07 Jun 2018 14:12:18 +0300
changeset 2175 667f7de69cf6
parent 2174 55611282b909
child 2176 748017ca4151
Fix compilation problem in case of TARGET_LOGGING_DISABLE turned on and TARGET_DEBUG_DISABLE turned off
targets/beremiz.h
--- a/targets/beremiz.h	Thu Jun 07 14:04:45 2018 +0300
+++ b/targets/beremiz.h	Thu Jun 07 14:12:18 2018 +0300
@@ -9,6 +9,12 @@
 #define LOG_DEBUG 3
 
 extern unsigned long long common_ticktime__;
-int LogMessage(uint8_t level, char* buf, uint32_t size);
+
+#ifdef TARGET_LOGGING_DISABLE
+#define LogMessage(level, buf, size)
+#else
+int     LogMessage(uint8_t level, char* buf, uint32_t size);
+#endif
+
 long AtomicCompareExchange(long* atomicvar,long compared, long exchange);