aboutsummaryrefslogtreecommitdiffhomepage
path: root/Cart_Reader/NGP.ino
diff options
context:
space:
mode:
authorVincent Pelletier <[email protected]>2022-10-30 02:21:01 +0000
committerVincent Pelletier <[email protected]>2022-10-31 08:52:33 +0000
commitf07f6f90255b581f99c80ca84477dd91a9745f92 (patch)
treefc4406ec43ddf5fe597f9f69721f0925725a0351 /Cart_Reader/NGP.ino
parent0a823bf5b784aebbf3ec7ea1a11846174c4348ee (diff)
downloadcartreader-f07f6f90255b581f99c80ca84477dd91a9745f92.tar.gz
cartreader-f07f6f90255b581f99c80ca84477dd91a9745f92.zip
All: Replace print_Error(*, boolean) calls with print_{,Fatal}Error(*)
Also, make print_FatalError(*) independent from print_Error(*). Also, factorise common parts of print_Error(*). Frees 2336 bytes of program space and 5 bytes of global ram space.
Diffstat (limited to 'Cart_Reader/NGP.ino')
-rw-r--r--Cart_Reader/NGP.ino6
1 files changed, 3 insertions, 3 deletions
diff --git a/Cart_Reader/NGP.ino b/Cart_Reader/NGP.ino
index 288800a..540e298 100644
--- a/Cart_Reader/NGP.ino
+++ b/Cart_Reader/NGP.ino
@@ -47,7 +47,7 @@ void setup_NGP() {
if (getCartInfo_NGP())
printCartInfo_NGP();
else
- print_Error(F("Cartridge read error"), true);
+ print_FatalError(F("Cartridge read error"));
}
void ngpMenu() {
@@ -215,7 +215,7 @@ void readROM_NGP(char* outPathBuf, size_t bufferSize) {
// open file on sdcard
if (!myFile.open(fileName, O_RDWR | O_CREAT))
- print_Error(create_file_STR, true);
+ print_FatalError(create_file_STR);
// write new folder number back to EEPROM
foldern++;
@@ -265,7 +265,7 @@ void scanChip_NGP() {
// open file on sdcard
if (!myFile.open(fileName, O_RDWR | O_CREAT))
- print_Error(create_file_STR, true);
+ print_FatalError(create_file_STR);
// write new folder number back to EEPROM
foldern++;