Fix compilation without WITH_SPIFFS

pull/5/head
Pawel Jalocha 2019-01-23 19:45:17 +00:00
rodzic 8b3eea922b
commit 81fc30b83d
2 zmienionych plików z 9 dodań i 1 usunięć

Wyświetl plik

@ -239,7 +239,11 @@ static void ProcessCtrlC(void) // print system
}
static void ProcessCtrlL(void) // print system state to the console
{ SPIFFSlog_ListFiles(); }
{
#ifdef WITH_SPIFFS
SPIFFSlog_ListFiles();
#endif
}

Wyświetl plik

@ -14,6 +14,8 @@
// #define DEBUG_PRINT
#ifdef WITH_SPIFFS
static const char *SPIFFSlog_Path = "/spiffs/"; // path to 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
@ -299,3 +301,5 @@ void vTaskLOG(void* pvParameters)
if(Diff>=8000) { Copy(); PrevTick=Tick; } // if more than 4.0sec than copy the packets
}
}
#endif // WITH_SPIFFS