aboutsummaryrefslogtreecommitdiffhomepage
path: root/Cart_Reader/2600.ino
diff options
context:
space:
mode:
authorsmesgr9000 <smesgr9000>2024-05-25 14:07:08 +0200
committersmesgr9000 <smesgr9000>2024-05-25 14:07:08 +0200
commit6abe29fcd9b30e45c539876a57634aa840f77a58 (patch)
treeadc69e08fac2dabd7d857fd377c385254b201748 /Cart_Reader/2600.ino
parentd1d83bbd1004f5d1d3575b9015aabf73bca7640b (diff)
downloadcartreader-6abe29fcd9b30e45c539876a57634aa840f77a58.tar.gz
cartreader-6abe29fcd9b30e45c539876a57634aa840f77a58.zip
remove duplicate code to print saving and increment of folder id
Diffstat (limited to 'Cart_Reader/2600.ino')
-rw-r--r--Cart_Reader/2600.ino9
1 files changed, 1 insertions, 8 deletions
diff --git a/Cart_Reader/2600.ino b/Cart_Reader/2600.ino
index da538d4..883051d 100644
--- a/Cart_Reader/2600.ino
+++ b/Cart_Reader/2600.ino
@@ -299,19 +299,12 @@ void readROM_2600() {
createFolder("ATARI", "ROM", romName, "a26");
display_Clear();
- print_STR(saving_to_STR, 0);
- print_Msg(folder);
- println_Msg(F("/..."));
- display_Update();
+ printAndIncrementFolder();
// open file on sdcard
if (!myFile.open(fileName, O_RDWR | O_CREAT))
print_FatalError(create_file_STR);
- // write new folder number back to EEPROM
- foldern++;
- EEPROM_writeAnything(0, foldern);
-
// ROM Start 0xF000
// Address A12-A0 = 0x1000 = 1 0000 0000 0000 = 4KB
// Read Start 0x1000