Skip to content

Commit

Permalink
added rpi3 overclock support
Browse files Browse the repository at this point in the history
  • Loading branch information
digitalLumberjack committed Mar 12, 2016
1 parent 7bc9e67 commit 8ec52cb
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 10 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,4 @@ This project adheres to [Semantic Versioning](http://semver.org/).
- Multithreaded list loading and writing
- Added favorite system
- Switched a and b buttons functions
- Added support for RPI3 overclock (only none)
4 changes: 2 additions & 2 deletions es-app/src/guis/GuiMenu.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -175,12 +175,12 @@ GuiMenu::GuiMenu(Window *window) : GuiComponent(window), mMenu(window, _("MAIN M
overclock_choice->add(_("TURBO (1000Mhz)"), "turbo", currentOverclock == "turbo");
overclock_choice->add(_("HIGH (950Mhz)"), "high", currentOverclock == "high");
overclock_choice->add(_("NONE (700Mhz)"), "none", currentOverclock == "none");
#else
#else if RPI_VERSION == 2
std::string currentOverclock = Settings::getInstance()->getString("Overclock");
overclock_choice->add(_("EXTREM (1100Mhz)"), "rpi2-extrem", currentOverclock == "rpi2-extrem");
overclock_choice->add(_("TURBO (1050Mhz)+"), "rpi2-turbo", currentOverclock == "rpi2-turbo");
overclock_choice->add(_("HIGH (1050Mhz)"), "rpi2-high", currentOverclock == "rpi2-high");
overclock_choice->add(_("NONE (900Mhz)"), "none-rpi2", currentOverclock == "none-rpi2");
overclock_choice->add(_("NONE (900Mhz)"), "none", currentOverclock == "none");
#endif
#else
overclock_choice->add(_("NONE"), "none", true);
Expand Down
8 changes: 0 additions & 8 deletions es-core/src/Settings.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -87,15 +87,7 @@ void Settings::setDefaults() {
mStringMap["INPUT P2"] = "DEFAULT";
mStringMap["INPUT P3"] = "DEFAULT";
mStringMap["INPUT P4"] = "DEFAULT";
#ifdef RPI_VERSION
#if RPI_VERSION == 2
mStringMap["Overclock"] = "none-rpi2";
#else
mStringMap["Overclock"] = "none";
#endif
#else
mStringMap["Overclock"] = "none";
#endif
mStringMap["UpdateCommand"] = "/recalbox/scripts/recalbox-upgrade.sh";
mStringMap["UpdateServer"] = "recalbox.com";
mStringMap["VersionFile"] = "/recalbox/recalbox.version";
Expand Down

0 comments on commit 8ec52cb

Please sign in to comment.