Update main.cpp

This commit is contained in:
SybexX
2025-02-14 21:41:28 +01:00
committed by GitHub
parent eb4c9276d5
commit 9c3fbb4aff

View File

@@ -955,11 +955,8 @@ bool setCpuFrequency(void) {
/* Load config from config file */ /* Load config from config file */
while ((!configFile.GetNextParagraph(line, disabledLine, eof) || while ((!configFile.GetNextParagraph(line, disabledLine, eof) ||
(line.compare("[System]") != 0)) && !eof) {} (line.compare("[System]") != 0)) && !eof) {}
if (eof) {
return false;
}
if (disabledLine) { if (eof || disabledLine) {
return false; return false;
} }
@@ -969,7 +966,7 @@ bool setCpuFrequency(void) {
if (toUpper(splitted[0]) == "CPUFREQUENCY") { if (toUpper(splitted[0]) == "CPUFREQUENCY") {
if (splitted.size() < 2) { if (splitted.size() < 2) {
cpuFrequency = 160; cpuFrequency = "160";
} }
else { else {
cpuFrequency = splitted[1]; cpuFrequency = splitted[1];