Skip to content

Commit

Permalink
remove no longer used parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
CaCO3 committed Oct 1, 2024
1 parent b3484c5 commit 04db697
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions code/main/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -727,8 +727,11 @@ void migrateConfiguration(void) {

FILE* pfile = fopen(CONFIG_FILE, "w");
for (int i = 0; i < configLines.size(); i++) {
fwrite(configLines[i].c_str() , configLines[i].length(), 1, pfile);
fwrite("\n" , 1, 1, pfile);
if (!isInString(configLines[i], ";UNUSED_PARAMETER"))
{
fwrite(configLines[i].c_str() , configLines[i].length(), 1, pfile);
fwrite("\n" , 1, 1, pfile);
}
}
fclose(pfile);
LogFile.WriteToFile(ESP_LOG_INFO, TAG, "Config file migrated. Saved backup to " + string(CONFIG_FILE_BACKUP));
Expand Down

0 comments on commit 04db697

Please sign in to comment.