File tree 5 files changed +8
-17
lines changed
5 files changed +8
-17
lines changed Original file line number Diff line number Diff line change @@ -124,7 +124,7 @@ extern void BootResetAction ( void ) {
124
124
LPCmodSettings .LCDsettings .customTextBoot == 0xFF ||
125
125
LPCmodSettings .LCDsettings .displayBIOSNameBoot == 0xFF ){
126
126
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!
128
128
BootFlashSaveOSSettings (); //Put some initial values in there.
129
129
LEDFirstBoot (NULL );
130
130
LPCmodSettings .OSsettings .bootTimeout = 0 ; //No countdown since it's the first boot since a flash update.
@@ -165,7 +165,7 @@ extern void BootResetAction ( void ) {
165
165
BootVideoJpegUnpackAsRgb (
166
166
(u8 * )& _start_backdrop ,
167
167
& jpegBackdrop
168
- );//Certainly don't write to flash if no proper hardware was detected!
168
+ );
169
169
}
170
170
// paint the backdrop
171
171
#ifndef DEBUG_MODE
Original file line number Diff line number Diff line change @@ -241,14 +241,13 @@ void I2CSetFanSpeed(u8 speed){
241
241
u8 I2CGetXboxMBRev (void ){
242
242
u8 result = REVUNKNOWN ;
243
243
u32 temp ;
244
- u32 ver32 [3 ]; //Just to avoid warning on pointer type for ReadfromSMBus function.
244
+ u32 ver32 [3 ];
245
245
char ver [4 ] = "000" ;
246
246
ver [3 ] = 0 ; //Terminator.
247
247
ReadfromSMBus (0x10 , 0x01 , 1 , & ver32 [1 ]);
248
248
ReadfromSMBus (0x10 , 0x01 , 1 , & ver32 [2 ]);
249
249
ReadfromSMBus (0x10 , 0x01 , 1 , & ver32 [0 ]);
250
250
251
- //I'm not on a small embedded system. I've got plenty of RAM to spare.
252
251
ver [0 ] = ver32 [0 ];
253
252
ver [1 ] = ver32 [1 ];
254
253
ver [2 ] = ver32 [2 ];
Original file line number Diff line number Diff line change 8
8
#define BNKTSOP1 0x05
9
9
#define BNKTSOP2 0x06
10
10
#define BNKTSOP3 0x07
11
- #define NOBNKID 0xFF
12
11
#define LPCMOD_TRUE 0x01
13
12
#define LPCMOD_FALSE 0x00
14
13
Original file line number Diff line number Diff line change @@ -88,17 +88,11 @@ static void IconMenuDraw(int nXOffset, int nYOffset) {
88
88
if (iconSeeker -> bankID == LPCmodSettings .OSsettings .activeBank ){
89
89
//Yes. Identify as selected icon and get out of while loop.
90
90
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 ;
102
96
}
103
97
else {
104
98
iconPtr = selectedIcon ;
Original file line number Diff line number Diff line change @@ -152,7 +152,6 @@ else { //No split.
152
152
iconPtr = (ICON * )malloc (sizeof (ICON ));
153
153
iconPtr -> iconSlot = ICON_SOURCE_SLOT0 ;
154
154
iconPtr -> szCaption = "Advanced" ;
155
- iconPtr -> bankID = NOBNKID ;
156
155
iconPtr -> functionPtr = AdvancedMenu ;
157
156
iconPtr -> functionDataPtr = (void * )TextMenuInit ();
158
157
AddIcon (iconPtr );
You can’t perform that action at this time.
0 commit comments