mirror of
https://github.com/jomjol/AI-on-the-edge-device.git
synced 2025-12-06 11:36:51 +03:00
Update main.cpp
This commit is contained in:
@@ -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];
|
||||||
|
|||||||
Reference in New Issue
Block a user