瀏覽代碼

Move Logfile Switch to define.h

jomjol 3 年之前
父節點
當前提交
7a1154363b
共有 2 個文件被更改,包括 7 次插入5 次删除
  1. 0 4
      code/components/jomjol_logfile/ClassLogFile.cpp
  2. 7 1
      code/include/defines.h

+ 0 - 4
code/components/jomjol_logfile/ClassLogFile.cpp

@@ -19,10 +19,6 @@ extern "C" {
 
 static const char *TAG = "LOGFILE";
 
-/* Uncomment this to keep the logfile open for appending.
- * If commented out, the logfile gets opened/closed for each log measage (old behaviour) */
-//#define KEEP_LOGFILE_OPEN_FOR_APPENDING
-
 ClassLogFile LogFile("/sdcard/log/message", "log_%Y-%m-%d.txt", "/sdcard/log/data", "data_%Y-%m-%d.csv");
 
 void ClassLogFile::WriteHeapInfo(std::string _id)

+ 7 - 1
code/include/defines.h

@@ -6,6 +6,12 @@
 ////          Global definitions         ////
 /////////////////////////////////////////////
 
+    /* Uncomment this to keep the logfile open for appending.
+    * If commented out, the logfile gets opened/closed for each log measage (old behaviour) */
+    // ClassLogFile
+    //#define KEEP_LOGFILE_OPEN_FOR_APPENDING
+
+
     //ClassControllCamera + ClassFlowMakeImage + connect_wlan + main
     #define FLASH_GPIO GPIO_NUM_4
     #define BLINK_GPIO GPIO_NUM_33
@@ -79,7 +85,7 @@
     #define MAX_JPG_SIZE 128000
 
 
-    //CAlignAdnCutImage + CImageBasis
+    //CAlignAndCutImage + CImageBasis
     #define _USE_MATH_DEFINES
     #define GET_MEMORY(X) heap_caps_malloc(X, MALLOC_CAP_SPIRAM)