kopia lustrzana https://github.com/pjalocha/esp32-ogn-tracker
Fix compilation without WITH_SPIFFS
rodzic
8b3eea922b
commit
81fc30b83d
|
@ -239,7 +239,11 @@ static void ProcessCtrlC(void) // print system
|
||||||
}
|
}
|
||||||
|
|
||||||
static void ProcessCtrlL(void) // print system state to the console
|
static void ProcessCtrlL(void) // print system state to the console
|
||||||
{ SPIFFSlog_ListFiles(); }
|
{
|
||||||
|
#ifdef WITH_SPIFFS
|
||||||
|
SPIFFSlog_ListFiles();
|
||||||
|
#endif
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -14,6 +14,8 @@
|
||||||
|
|
||||||
// #define DEBUG_PRINT
|
// #define DEBUG_PRINT
|
||||||
|
|
||||||
|
#ifdef WITH_SPIFFS
|
||||||
|
|
||||||
static const char *SPIFFSlog_Path = "/spiffs/"; // path to log files
|
static const char *SPIFFSlog_Path = "/spiffs/"; // path to log files
|
||||||
static const char *SPIFFSlog_Ext = ".TLG"; // extension for log files
|
static const char *SPIFFSlog_Ext = ".TLG"; // extension for log files
|
||||||
static const uint32_t SPIFFSlog_MaxTime = 3600; // 1 hour max. per single log file
|
static const uint32_t SPIFFSlog_MaxTime = 3600; // 1 hour max. per single log file
|
||||||
|
@ -299,3 +301,5 @@ void vTaskLOG(void* pvParameters)
|
||||||
if(Diff>=8000) { Copy(); PrevTick=Tick; } // if more than 4.0sec than copy the packets
|
if(Diff>=8000) { Copy(); PrevTick=Tick; } // if more than 4.0sec than copy the packets
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#endif // WITH_SPIFFS
|
||||||
|
|
Ładowanie…
Reference in New Issue