Skip to content

Commit

Permalink
Hotfix in new method
Browse files Browse the repository at this point in the history
  • Loading branch information
jibrilsharafi committed Aug 24, 2024
1 parent c3a8ea5 commit c9f2f96
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion library.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
}
],
"dependencies": {},
"version": "1.2.1",
"version": "1.2.2",
"frameworks": "arduino",
"platforms": "*"
}
2 changes: 1 addition & 1 deletion library.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name=AdvancedLogger
version=1.2.1
version=1.2.2
author=Jibril Sharafi <[email protected]>
maintainer=Jibril Sharafi <[email protected]>
sentence=Library for simple logging to memory with comprehensive format.
Expand Down
2 changes: 1 addition & 1 deletion src/AdvancedLogger.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion src/AdvancedLogger.h
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit c9f2f96

Please sign in to comment.