mirror of
https://github.com/thooge/esp32-nmea2000-obp60.git
synced 2025-12-16 07:23:07 +01:00
Add CPU speed for config. Modify display refresh with temp compensation
This commit is contained in:
@@ -54,11 +54,19 @@ void OBP60Init(GwApi *api){
|
||||
}
|
||||
#endif
|
||||
|
||||
/*
|
||||
setCpuFrequencyMhz(80);
|
||||
// Set CPU speed
|
||||
String cpuspeed = api->getConfig()->getConfigItem(api->getConfig()->cpuSpeed,true)->asString();
|
||||
if(String(cpuspeed) == "80"){
|
||||
setCpuFrequencyMhz(80);
|
||||
}
|
||||
if(String(cpuspeed) == "160"){
|
||||
setCpuFrequencyMhz(160);
|
||||
}
|
||||
if(String(cpuspeed) == "240"){
|
||||
setCpuFrequencyMhz(240);
|
||||
}
|
||||
int freq = getCpuFrequencyMhz();
|
||||
api->getLogger()->logDebug(GwLog::LOG,"CPU speed: %i", freq);
|
||||
*/
|
||||
api->getLogger()->logDebug(GwLog::LOG,"CPU speed: %i MHz", freq);
|
||||
|
||||
// Settings for backlight
|
||||
String backlightMode = api->getConfig()->getConfigItem(api->getConfig()->backlight,true)->asString();
|
||||
|
||||
Reference in New Issue
Block a user