mirror of
git://projects.qi-hardware.com/gmenu2x.git
synced 2024-11-26 01:06:16 +02:00
Fixed intendation.
This commit is contained in:
parent
5db8ac8038
commit
c52b239bc0
@ -15,7 +15,7 @@ inline int sdram_convert(unsigned int pllin,unsigned int *sdram_freq)
|
|||||||
tmp = SDRAM_TREF/ns;
|
tmp = SDRAM_TREF/ns;
|
||||||
tmp = tmp/64 + 1;
|
tmp = tmp/64 + 1;
|
||||||
if (tmp > 0xff) tmp = 0xff;
|
if (tmp > 0xff) tmp = 0xff;
|
||||||
*sdram_freq = tmp;
|
*sdram_freq = tmp;
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
|
@ -1549,7 +1549,7 @@ void GMenu2X::renameSection() {
|
|||||||
string oldicon = sc.getSkinFilePath(oldpng), newicon = sc.getSkinFilePath(newpng);
|
string oldicon = sc.getSkinFilePath(oldpng), newicon = sc.getSkinFilePath(newpng);
|
||||||
if (!oldicon.empty() && newicon.empty()) {
|
if (!oldicon.empty() && newicon.empty()) {
|
||||||
newicon = oldicon;
|
newicon = oldicon;
|
||||||
newicon.replace(newicon.find(oldpng), oldpng.length(), newpng);
|
newicon.replace(newicon.find(oldpng), oldpng.length(), newpng);
|
||||||
|
|
||||||
if (!fileExists(newicon)) {
|
if (!fileExists(newicon)) {
|
||||||
rename(oldicon.c_str(), "tmpsectionicon");
|
rename(oldicon.c_str(), "tmpsectionicon");
|
||||||
@ -1745,13 +1745,13 @@ unsigned short GMenu2X::getBatteryLevel() {
|
|||||||
if (battval>30) return 2;
|
if (battval>30) return 2;
|
||||||
if (battval>10) return 1;
|
if (battval>10) return 1;
|
||||||
|
|
||||||
if (!usbHandle) return 0;
|
if (!usbHandle) return 0;
|
||||||
int usbval = 0;
|
int usbval = 0;
|
||||||
char usbvalcstr[5];
|
char usbvalcstr[5];
|
||||||
fscanf(usbHandle, "%s", &usbvalcstr[0]);
|
fscanf(usbHandle, "%s", &usbvalcstr[0]);
|
||||||
rewind(usbHandle);
|
rewind(usbHandle);
|
||||||
usbval = atoi(usbvalcstr);
|
usbval = atoi(usbvalcstr);
|
||||||
if (usbval==1) return 6;
|
if (usbval==1) return 6;
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
//#else
|
//#else
|
||||||
|
Loading…
Reference in New Issue
Block a user