mirror of
https://github.com/jomjol/AI-on-the-edge-device.git
synced 2025-12-08 20:46:52 +03:00
Move Logfile Switch to define.h
This commit is contained in:
@@ -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)
|
||||||
|
|||||||
@@ -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)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user