# HG changeset patch # User Andrey Skvortsov # Date 1528369938 -10800 # Node ID 667f7de69cf6002f34964934c5cf7eaf8a420ba7 # Parent 55611282b909050d8e13ab3081331072ac81e492 Fix compilation problem in case of TARGET_LOGGING_DISABLE turned on and TARGET_DEBUG_DISABLE turned off diff -r 55611282b909 -r 667f7de69cf6 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);