diff --git a/FDRS_Gateway/fdrs_functions.h b/FDRS_Gateway/fdrs_functions.h index 0fc8b2e..dfe0a2a 100644 --- a/FDRS_Gateway/fdrs_functions.h +++ b/FDRS_Gateway/fdrs_functions.h @@ -207,7 +207,7 @@ void releaseLogBuffer() #endif #ifdef USE_FS_LOG DBG("Releasing Log buffer to internal flash."); - File logfile = LittleFS.open(filename, "a"); + File logfile = LittleFS.open(FS_FILENAME, "a"); logfile.print(logBuffer); logfile.close(); #endif