From c9f2f963239e3f057c42926dc3f90fd9f22b1021 Mon Sep 17 00:00:00 2001 From: Jibril Sharafi Date: Sat, 24 Aug 2024 23:21:30 +0200 Subject: [PATCH] Hotfix in new method --- library.json | 2 +- library.properties | 2 +- src/AdvancedLogger.cpp | 2 +- src/AdvancedLogger.h | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/library.json b/library.json index d0e3239..8ab7b35 100644 --- a/library.json +++ b/library.json @@ -15,7 +15,7 @@ } ], "dependencies": {}, - "version": "1.2.1", + "version": "1.2.2", "frameworks": "arduino", "platforms": "*" } \ No newline at end of file diff --git a/library.properties b/library.properties index 5805c4d..49c981e 100644 --- a/library.properties +++ b/library.properties @@ -1,5 +1,5 @@ name=AdvancedLogger -version=1.2.1 +version=1.2.2 author=Jibril Sharafi maintainer=Jibril Sharafi sentence=Library for simple logging to memory with comprehensive format. diff --git a/src/AdvancedLogger.cpp b/src/AdvancedLogger.cpp index 577b9fa..424859c 100644 --- a/src/AdvancedLogger.cpp +++ b/src/AdvancedLogger.cpp @@ -463,7 +463,7 @@ void AdvancedLogger::clearLog() * This method clears the log file but retains the latest X percent of log entries. * The default value is 10%. */ -void AdvancedLogger::clearLogKeepLatestXPercent(int percent = 10) +void AdvancedLogger::clearLogKeepLatestXPercent(int percent) { File _file = SPIFFS.open(_logFilePath, "r"); if (!_file) diff --git a/src/AdvancedLogger.h b/src/AdvancedLogger.h index 01cc5f8..567e868 100644 --- a/src/AdvancedLogger.h +++ b/src/AdvancedLogger.h @@ -79,7 +79,7 @@ class AdvancedLogger void setMaxLogLines(int maxLogLines); int getLogLines(); void clearLog(); - void clearLogKeepLatestXPercent(int percent); + void clearLogKeepLatestXPercent(int percent = 10); void dump(Stream& stream);