--- a/targets/beremiz.h Mon Jan 07 23:28:28 2019 +0300
+++ b/targets/beremiz.h Sat Jan 12 13:57:16 2019 +0300
@@ -11,7 +11,13 @@
extern unsigned long long common_ticktime__;
#ifdef TARGET_LOGGING_DISABLE
-#define LogMessage(level, buf, size)
+static inline int LogMessage(uint8_t level, char* buf, uint32_t size) int LogMessage(uint8_t level, char* buf, uint32_t size);
--- a/targets/plc_main_head.c Mon Jan 07 23:28:28 2019 +0300
+++ b/targets/plc_main_head.c Sat Jan 12 13:57:16 2019 +0300
@@ -35,9 +35,6 @@
/* Help to quit cleanly when init fail at a certain level */
static int init_level = 0;
-/* Prototype for Logging to help spotting errors at init */
-int LogMessage(uint8_t level, char* buf, uint32_t size);
* Prototypes of functions exported by plugins