Stuff
This commit is contained in:
15
main.c
15
main.c
@@ -98,16 +98,11 @@ void Main(void)
|
||||
|
||||
BATTERY_GetReadings(false);
|
||||
|
||||
{ // count the number of menu list items
|
||||
unsigned int hidden = 0;
|
||||
gMenuListCount = 0;
|
||||
while (MenuList[gMenuListCount].name[0] != '\0')
|
||||
if (MenuList[++gMenuListCount].hidden != 0)
|
||||
hidden++;
|
||||
// disable the items marked hidden
|
||||
gMenuListCount -= 8;
|
||||
//gMenuListCount -= hidden;
|
||||
}
|
||||
// count the number of menu list items
|
||||
gMenuListCount = 0;
|
||||
while (MenuList[gMenuListCount].name[0] != '\0')
|
||||
gMenuListCount++;
|
||||
gMenuListCount -= 8; // disable the last 'n' items
|
||||
|
||||
if (!gChargingWithTypeC && !gBatteryDisplayLevel)
|
||||
{
|
||||
|
Reference in New Issue
Block a user