From 04db6977581fddde5d563b96a5bcd4da2c77dddd Mon Sep 17 00:00:00 2001 From: CaCO3 Date: Wed, 2 Oct 2024 00:08:14 +0200 Subject: [PATCH] remove no longer used parameters --- code/main/main.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/code/main/main.cpp b/code/main/main.cpp index 35e3b8bbb..5c16ce941 100644 --- a/code/main/main.cpp +++ b/code/main/main.cpp @@ -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));