From e98d21f9c1ffaaca44a2c617790ae0a75f1ccdbf Mon Sep 17 00:00:00 2001 From: sanni Date: Mon, 13 Feb 2023 11:54:19 +0100 Subject: [PATCH] Fix adding multiple newlines to log when scrolling through NES database --- Cart_Reader/Cart_Reader.ino | 2 +- Cart_Reader/NES.ino | 11 +++++------ 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)