aboutsummaryrefslogtreecommitdiffhomepage
path: root/Cart_Reader/SUPRACAN.ino
diff options
context:
space:
mode:
authorsmesgr9000 <smesgr9000>2024-05-25 14:25:35 +0200
committersmesgr9000 <smesgr9000>2024-05-25 14:25:35 +0200
commit41182a7eb07307e5151218cfa69eaa965e766816 (patch)
tree967fd80feddc3e7d4d7d7b1efed9348d26c613b9 /Cart_Reader/SUPRACAN.ino
parent6abe29fcd9b30e45c539876a57634aa840f77a58 (diff)
downloadcartreader-41182a7eb07307e5151218cfa69eaa965e766816.tar.gz
cartreader-41182a7eb07307e5151218cfa69eaa965e766816.zip
add option to clear display and remove duplicate code
Diffstat (limited to 'Cart_Reader/SUPRACAN.ino')
-rw-r--r--Cart_Reader/SUPRACAN.ino9
1 files changed, 3 insertions, 6 deletions
diff --git a/Cart_Reader/SUPRACAN.ino b/Cart_Reader/SUPRACAN.ino
index 6d737f7..c096f21 100644
--- a/Cart_Reader/SUPRACAN.ino
+++ b/Cart_Reader/SUPRACAN.ino
@@ -151,8 +151,7 @@ static void readROM_Acan() {
EEPROM_readAnything(0, foldern);
snprintf(folder, FILEPATH_LENGTH, "/ACAN/ROM/%d", foldern);
- display_Clear();
- printAndIncrementFolder();
+ printAndIncrementFolder(true);
sd.mkdir(folder, true);
sd.chdir(folder);
@@ -190,8 +189,7 @@ static void readSRAM_Acan() {
EEPROM_readAnything(0, foldern);
snprintf(folder, FILEPATH_LENGTH, "/ACAN/SAVE/%d", foldern);
- display_Clear();
- printAndIncrementFolder();
+ printAndIncrementFolder(true);
sd.mkdir(folder, true);
sd.chdir(folder);
@@ -282,8 +280,7 @@ static void readUM6650() {
EEPROM_readAnything(0, foldern);
snprintf(folder, sizeof(folder), "/ACAN/UM6650/%d", foldern);
- display_Clear();
- printAndIncrementFolder();
+ printAndIncrementFolder(true);
sd.mkdir(folder, true);
sd.chdir(folder);