mirror of
https://github.com/sanni/cartreader.git
synced 2024-11-30 00:14:15 +01:00
Update Cart_Reader.ino
Add the possibility to hide Self Test from menu
This commit is contained in:
parent
603a22116c
commit
b2415c0287
@ -905,7 +905,9 @@ static const char modeItem26[] PROGMEM = "Vectrex";
|
|||||||
#ifdef enable_FLASH
|
#ifdef enable_FLASH
|
||||||
static const char modeItem27[] PROGMEM = "Flashrom Programmer";
|
static const char modeItem27[] PROGMEM = "Flashrom Programmer";
|
||||||
#endif
|
#endif
|
||||||
|
#ifdef enable_selftest
|
||||||
static const char modeItem28[] PROGMEM = "Self Test (3V)";
|
static const char modeItem28[] PROGMEM = "Self Test (3V)";
|
||||||
|
#endif
|
||||||
static const char modeItem29[] PROGMEM = "About";
|
static const char modeItem29[] PROGMEM = "About";
|
||||||
//static const char modeItem30[] PROGMEM = "Reset"; (stored in common strings array)
|
//static const char modeItem30[] PROGMEM = "Reset"; (stored in common strings array)
|
||||||
static const char* const modeOptions[] PROGMEM = {
|
static const char* const modeOptions[] PROGMEM = {
|
||||||
@ -990,12 +992,15 @@ static const char* const modeOptions[] PROGMEM = {
|
|||||||
#ifdef enable_FLASH
|
#ifdef enable_FLASH
|
||||||
modeItem27,
|
modeItem27,
|
||||||
#endif
|
#endif
|
||||||
modeItem28, modeItem29, string_reset2
|
#ifdef enable_selftest
|
||||||
|
modeItem28
|
||||||
|
#endif
|
||||||
|
modeItem29, string_reset2
|
||||||
};
|
};
|
||||||
|
|
||||||
// Count menu entries
|
// Count menu entries
|
||||||
byte countMenuEntries() {
|
byte countMenuEntries() {
|
||||||
byte count = 3;
|
byte count = 2;
|
||||||
#ifdef enable_GBX
|
#ifdef enable_GBX
|
||||||
count++;
|
count++;
|
||||||
#endif
|
#endif
|
||||||
@ -1076,6 +1081,9 @@ byte countMenuEntries() {
|
|||||||
#endif
|
#endif
|
||||||
#ifdef enable_FLASH
|
#ifdef enable_FLASH
|
||||||
count++;
|
count++;
|
||||||
|
#endif
|
||||||
|
#ifdef enable_selftest
|
||||||
|
count++;
|
||||||
#endif
|
#endif
|
||||||
return count;
|
return count;
|
||||||
}
|
}
|
||||||
@ -1220,9 +1228,10 @@ unsigned char fixMenuOrder(unsigned char modeMenu) {
|
|||||||
currentEntry++;
|
currentEntry++;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
// Self Test
|
#if defined(enable_selftest)
|
||||||
translationMatrix[currentEntry] = 27;
|
translationMatrix[currentEntry] = 27;
|
||||||
currentEntry++;
|
currentEntry++;
|
||||||
|
#endif
|
||||||
|
|
||||||
// About
|
// About
|
||||||
translationMatrix[currentEntry] = 28;
|
translationMatrix[currentEntry] = 28;
|
||||||
|
Loading…
Reference in New Issue
Block a user