Move Logfile Switch to define.h

This commit is contained in:
jomjol
2022-12-28 14:32:18 +01:00
parent f2f117aea1
commit 7a1154363b
2 changed files with 7 additions and 5 deletions

View File

@@ -19,10 +19,6 @@ extern "C" {
static const char *TAG = "LOGFILE"; 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"); ClassLogFile LogFile("/sdcard/log/message", "log_%Y-%m-%d.txt", "/sdcard/log/data", "data_%Y-%m-%d.csv");
void ClassLogFile::WriteHeapInfo(std::string _id) void ClassLogFile::WriteHeapInfo(std::string _id)

View File

@@ -6,6 +6,12 @@
//// Global definitions //// //// 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 //ClassControllCamera + ClassFlowMakeImage + connect_wlan + main
#define FLASH_GPIO GPIO_NUM_4 #define FLASH_GPIO GPIO_NUM_4
#define BLINK_GPIO GPIO_NUM_33 #define BLINK_GPIO GPIO_NUM_33
@@ -79,7 +85,7 @@
#define MAX_JPG_SIZE 128000 #define MAX_JPG_SIZE 128000
//CAlignAdnCutImage + CImageBasis //CAlignAndCutImage + CImageBasis
#define _USE_MATH_DEFINES #define _USE_MATH_DEFINES
#define GET_MEMORY(X) heap_caps_malloc(X, MALLOC_CAP_SPIRAM) #define GET_MEMORY(X) heap_caps_malloc(X, MALLOC_CAP_SPIRAM)