1
0
mirror of git://projects.qi-hardware.com/gmenu2x.git synced 2024-07-04 21:05:27 +03:00

Do not constrain the max CPU frequency for apps on setting the string value.

It is already constrained on editing and when actually applying the frequency.
The string value constrain is problematic because it happens in a class that
has no knowledge of the actual CPU limits, so it can only contrain to
hardcoded limits.

With this change you'll actually be able to run apps at 432 MHz.
This commit is contained in:
Maarten ter Huurne 2011-09-19 16:27:53 +02:00
parent 8d04cf1064
commit 8bcd03962f

View File

@ -145,10 +145,9 @@ const string &LinkApp::clockStr(int maxClock) {
}
void LinkApp::setClock(int mhz) {
iclock = constrain(mhz,200,430);
stringstream ss;
sclock = "";
ss << iclock << "Mhz";
ss << mhz << "Mhz";
ss >> sclock;
edited = true;