aboutsummaryrefslogtreecommitdiffhomepage
path: root/Cart_Reader/INTV.ino
diff options
context:
space:
mode:
authorsanni <[email protected]>2023-06-26 12:04:00 +0200
committersanni <[email protected]>2023-06-26 12:04:00 +0200
commitdee54dd30e2f95392b7152b00bced4687553f6ce (patch)
tree248607507b726dc5a1fa3af1a90bc5a3add196f4 /Cart_Reader/INTV.ino
parent4a5c4a5fca9e08963100e3d0df1d4e89731c375f (diff)
downloadcartreader-dee54dd30e2f95392b7152b00bced4687553f6ce.tar.gz
cartreader-dee54dd30e2f95392b7152b00bced4687553f6ce.zip
Move automatic voltage selection from menu to setup functions
Diffstat (limited to 'Cart_Reader/INTV.ino')
-rw-r--r--Cart_Reader/INTV.ino6
1 files changed, 5 insertions, 1 deletions
diff --git a/Cart_Reader/INTV.ino b/Cart_Reader/INTV.ino
index 2ee3efc..44824b6 100644
--- a/Cart_Reader/INTV.ino
+++ b/Cart_Reader/INTV.ino
@@ -99,6 +99,11 @@ static const char intvMenuItem3[] PROGMEM = "Set Mapper + Size";
static const char* const menuOptionsINTV[] PROGMEM = { intvMenuItem1, intvMenuItem2, intvMenuItem3, string_reset2 };
void setup_INTV() {
+#ifdef ENABLE_VSELECT
+ // Set Automatic Voltage Selection to 5V
+ setVoltage(VOLTS_SET_5V);
+#endif
+
// Set Address Pins to Output (UNUSED)
//A0-A7
DDRF = 0xFF;
@@ -135,7 +140,6 @@ void setup_INTV() {
}
void intvMenu() {
- setVoltage(VOLTS_SET_5V);
convertPgm(menuOptionsINTV, 4);
uint8_t mainMenu = question_box(F("INTELLIVISION MENU"), menuOptions, 4, 0);