aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorsanni <[email protected]>2023-02-13 11:54:19 +0100
committersanni <[email protected]>2023-02-13 11:54:19 +0100
commite98d21f9c1ffaaca44a2c617790ae0a75f1ccdbf (patch)
tree92d2501ecf7b7349acdac68ab96ab9fe783340c5
parent9bfa9c3418815d76e848ed9efcf52f464e768684 (diff)
downloadcartreader-e98d21f9c1ffaaca44a2c617790ae0a75f1ccdbf.tar.gz
cartreader-e98d21f9c1ffaaca44a2c617790ae0a75f1ccdbf.zip
Fix adding multiple newlines to log when scrolling through NES database
-rw-r--r--Cart_Reader/Cart_Reader.ino2
-rw-r--r--Cart_Reader/NES.ino11
2 files changed, 6 insertions, 7 deletions
diff --git a/Cart_Reader/Cart_Reader.ino b/Cart_Reader/Cart_Reader.ino
index de7bc6d..a9a1c41 100644
--- a/Cart_Reader/Cart_Reader.ino
+++ b/Cart_Reader/Cart_Reader.ino
@@ -4,7 +4,7 @@
This project represents a community-driven effort to provide
an easy to build and easy to modify cartridge dumper.
- Date: 10.02.2023
+ Date: 13.02.2023
Version: 12.3
SD lib: https://github.com/greiman/SdFat
diff --git a/Cart_Reader/NES.ino b/Cart_Reader/NES.ino
index 97a24c5..2e39cde 100644
--- a/Cart_Reader/NES.ino
+++ b/Cart_Reader/NES.ino
@@ -624,12 +624,16 @@ void getMapping() {
// Display database
while (database.available()) {
+#ifdef global_log
+ // Disable log to prevent unnecessary logging
+ dont_log = true;
+#endif
+
byte iNES[16];
byte* output;
char* input;
struct database_entry entry;
-
display_Clear();
readDatabaseEntry(database, &entry);
@@ -689,11 +693,6 @@ void getMapping() {
ram = 1; // 1K
}
-#ifdef global_log
- // Disable log to prevent unnecessary logging
- //println_Log(F("Get Mapping from List"));
- dont_log = true;
-#endif
println_Msg(entry.filename);
printNESSettings();
#if defined(enable_OLED)