targets/plc_main_tail.c
changeset 1800 1711339585ce
parent 1479 8f41aa88aa46
--- a/targets/plc_main_tail.c	Tue Sep 12 14:22:17 2017 +0300
+++ b/targets/plc_main_tail.c	Tue Sep 12 16:49:35 2017 +0300
@@ -5,6 +5,7 @@
 /** 
  * LOGGING
  **/
+#ifndef TARGET_LOGGING_DISABLE
 
 #ifndef LOG_BUFFER_SIZE
 #define LOG_BUFFER_SIZE (1<<14) /*16Ko*/
@@ -134,6 +135,10 @@
     return 0;
 }
 
+#endif
+
+#ifndef TARGET_EXT_SYNC_DISABLE
+
 #define CALIBRATED -2
 #define NOT_CALIBRATED -1
 static int calibration_count = NOT_CALIBRATED;
@@ -219,3 +224,5 @@
 		}
 	}
 }
+
+#endif