Skip to content

Commit 817544d

Browse files
committed
Revert "-Minor fix attempt on IconMenu"
This reverts commit c10e314.
1 parent fa8bebd commit 817544d

File tree

5 files changed

+8
-17
lines changed

5 files changed

+8
-17
lines changed

boot/BootResetAction.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ extern void BootResetAction ( void ) {
124124
LPCmodSettings.LCDsettings.customTextBoot == 0xFF ||
125125
LPCmodSettings.LCDsettings.displayBIOSNameBoot == 0xFF){
126126
fFirstBoot = true;
127-
initialLPCModOSBoot(&LPCmodSettings); //No settings for LPCMod were present in flash.
127+
initialLPCModOSBoot(&LPCmodSettings); //No settings for LPCMod were present in flash. //Certainly don't write to flash if no proper hardware was detected!
128128
BootFlashSaveOSSettings(); //Put some initial values in there.
129129
LEDFirstBoot(NULL);
130130
LPCmodSettings.OSsettings.bootTimeout = 0; //No countdown since it's the first boot since a flash update.
@@ -165,7 +165,7 @@ extern void BootResetAction ( void ) {
165165
BootVideoJpegUnpackAsRgb(
166166
(u8 *)&_start_backdrop,
167167
&jpegBackdrop
168-
);//Certainly don't write to flash if no proper hardware was detected!
168+
);
169169
}
170170
// paint the backdrop
171171
#ifndef DEBUG_MODE

drivers/pci/i2cio.c

+1-2
Original file line numberDiff line numberDiff line change
@@ -241,14 +241,13 @@ void I2CSetFanSpeed(u8 speed){
241241
u8 I2CGetXboxMBRev(void){
242242
u8 result = REVUNKNOWN;
243243
u32 temp;
244-
u32 ver32[3]; //Just to avoid warning on pointer type for ReadfromSMBus function.
244+
u32 ver32[3];
245245
char ver[4] = "000";
246246
ver[3] = 0; //Terminator.
247247
ReadfromSMBus(0x10, 0x01, 1, &ver32[1]);
248248
ReadfromSMBus(0x10, 0x01, 1, &ver32[2]);
249249
ReadfromSMBus(0x10, 0x01, 1, &ver32[0]);
250250

251-
//I'm not on a small embedded system. I've got plenty of RAM to spare.
252251
ver[0] = ver32[0];
253252
ver[1] = ver32[1];
254253
ver[2] = ver32[2];

include/lpcmod_v1.h

-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
#define BNKTSOP1 0x05
99
#define BNKTSOP2 0x06
1010
#define BNKTSOP3 0x07
11-
#define NOBNKID 0xFF
1211
#define LPCMOD_TRUE 0x01
1312
#define LPCMOD_FALSE 0x00
1413

menu/iconmenu/IconMenu.c

+5-11
Original file line numberDiff line numberDiff line change
@@ -88,17 +88,11 @@ static void IconMenuDraw(int nXOffset, int nYOffset) {
8888
if(iconSeeker->bankID == LPCmodSettings.OSsettings.activeBank){
8989
//Yes. Identify as selected icon and get out of while loop.
9090
selectedIcon = iconSeeker;
91-
//Just to be sure before digging deeper. Should always be true.
92-
if(selectedIcon->nextIcon != NULL){
93-
//If selectedIcon is last before "Advanced settings"
94-
if(selectedIcon->nextIcon->nextIcon == NULL){
95-
//iconPtr must point at least 2 icons before end of list
96-
//to properly show 3 icons on IconMenu.
97-
iconPtr = selectedIcon->previousIcon;
98-
}
99-
else{
100-
iconPtr = selectedIcon;
101-
}
91+
//If selectedIcon is last before "Advanced settings"
92+
if(selectedIcon->nextIcon->nextIcon == NULL){
93+
//iconPtr must point at least 2 icons before end of list
94+
//to properly show 3 icons on IconMenu.
95+
iconPtr = selectedIcon->previousIcon;
10296
}
10397
else{
10498
iconPtr = selectedIcon;

menu/iconmenu/IconMenuInit.c

-1
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,6 @@ else { //No split.
152152
iconPtr = (ICON *)malloc(sizeof(ICON));
153153
iconPtr->iconSlot = ICON_SOURCE_SLOT0;
154154
iconPtr->szCaption = "Advanced";
155-
iconPtr->bankID = NOBNKID;
156155
iconPtr->functionPtr = AdvancedMenu;
157156
iconPtr->functionDataPtr = (void *)TextMenuInit();
158157
AddIcon(iconPtr);

0 commit comments

Comments
 (0)