diff options
author | smesgr9000 <smesgr9000> | 2024-05-25 14:07:08 +0200 |
---|---|---|
committer | smesgr9000 <smesgr9000> | 2024-05-25 14:07:08 +0200 |
commit | 6abe29fcd9b30e45c539876a57634aa840f77a58 (patch) | |
tree | adc69e08fac2dabd7d857fd377c385254b201748 /Cart_Reader/WSV.ino | |
parent | d1d83bbd1004f5d1d3575b9015aabf73bca7640b (diff) | |
download | cartreader-6abe29fcd9b30e45c539876a57634aa840f77a58.tar.gz cartreader-6abe29fcd9b30e45c539876a57634aa840f77a58.zip |
remove duplicate code to print saving and increment of folder id
Diffstat (limited to 'Cart_Reader/WSV.ino')
-rw-r--r-- | Cart_Reader/WSV.ino | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/Cart_Reader/WSV.ino b/Cart_Reader/WSV.ino index ebe3c7b..8b047f6 100644 --- a/Cart_Reader/WSV.ino +++ b/Cart_Reader/WSV.ino @@ -188,19 +188,12 @@ void readROM_WSV() { createFolder("WSV", "ROM", romName, "sv"); 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); - // start reading rom dataIn_WSV(); controlIn_WSV(); |