Skip to content

Commit 9c3fbb4

Browse files
authored
Update main.cpp
1 parent eb4c927 commit 9c3fbb4

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

code/main/main.cpp

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -955,11 +955,8 @@ bool setCpuFrequency(void) {
955955
/* Load config from config file */
956956
while ((!configFile.GetNextParagraph(line, disabledLine, eof) ||
957957
(line.compare("[System]") != 0)) && !eof) {}
958-
if (eof) {
959-
return false;
960-
}
961958

962-
if (disabledLine) {
959+
if (eof || disabledLine) {
963960
return false;
964961
}
965962

@@ -969,7 +966,7 @@ bool setCpuFrequency(void) {
969966

970967
if (toUpper(splitted[0]) == "CPUFREQUENCY") {
971968
if (splitted.size() < 2) {
972-
cpuFrequency = 160;
969+
cpuFrequency = "160";
973970
}
974971
else {
975972
cpuFrequency = splitted[1];

0 commit comments

Comments
 (0)