diff options
author | sanni <[email protected]> | 2022-10-04 20:30:53 +0200 |
---|---|---|
committer | sanni <[email protected]> | 2022-10-04 20:30:53 +0200 |
commit | bef9d0f5f9395dd1c0e5df98293b6916f51dc440 (patch) | |
tree | 1b7aba3ff88d7a94858c2a47a2259553dc8c3670 /Cart_Reader/GBA.ino | |
parent | 20898cf3d30c1a624a47425d5de6df5b52c75839 (diff) | |
download | cartreader-bef9d0f5f9395dd1c0e5df98293b6916f51dc440.tar.gz cartreader-bef9d0f5f9395dd1c0e5df98293b6916f51dc440.zip |
Don't log manual mapper selection to file for NES/GBA
Diffstat (limited to 'Cart_Reader/GBA.ino')
-rw-r--r-- | Cart_Reader/GBA.ino | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/Cart_Reader/GBA.ino b/Cart_Reader/GBA.ino index 75d49eb..f46dc5d 100644 --- a/Cart_Reader/GBA.ino +++ b/Cart_Reader/GBA.ino @@ -841,6 +841,11 @@ void getCartInfo_GBA() { if (myFile.open("gba.txt", O_READ)) {
char gamename[100];
+#ifdef global_log
+ // Disable log to prevent unnecessary logging
+ dont_log = true;
+#endif
+
// Loop through file
while (myFile.available()) {
// Skip first line with name
@@ -994,6 +999,11 @@ void getCartInfo_GBA() { }
// Close the file:
myFile.close();
+
+#ifdef global_log
+ // Enable log again
+ dont_log = false;
+#endif
}
else {
print_Error(F("GBA.txt missing"), true);
|