Remove "Rotate to Change Press to Select" spam from log file

This commit is contained in:
sanni 2024-08-15 17:35:49 +02:00
parent eb083b86f3
commit d4dafab307

View File

@ -751,9 +751,7 @@ void readDataLineSingleDigit(FsFile& database, void* byteData) {
#endif
#if ( \
defined(ENABLE_ODY2) || defined(ENABLE_7800) || defined(ENABLE_C64) || defined(ENABLE_JAGUAR) || \
defined(ENABLE_VIC20)|| defined(ENABLE_ATARI8)\
)
defined(ENABLE_ODY2) || defined(ENABLE_7800) || defined(ENABLE_C64) || defined(ENABLE_JAGUAR) || defined(ENABLE_VIC20) || defined(ENABLE_ATARI8))
struct database_entry_mapper_size {
byte gameMapper;
byte gameSize;
@ -811,6 +809,8 @@ boolean checkCartSelection(FsFile& database, void (*readData)(FsFile&, void*), v
printDataLine(data);
}
println_Msg(FS(FSTRING_EMPTY));
4
#if defined(ENABLE_OLED)
print_STR(press_to_change_STR, 0);
if (fastScrolling > 1)
@ -888,6 +888,10 @@ boolean checkCartSelection(FsFile& database, void (*readData)(FsFile&, void*), v
void printInstructions() {
println_Msg(FS(FSTRING_EMPTY));
#ifdef ENABLE_GLOBAL_LOG
// Disable log to prevent unnecessary logging
dont_log = true;
#endif
#if defined(ENABLE_OLED)
print_STR(press_to_change_STR, 1);
print_STR(right_to_select_STR, 1);
@ -898,8 +902,11 @@ void printInstructions() {
println_Msg(F("U/D to Change"));
println_Msg(F("Space/Zero to Select"));
#endif /* ENABLE_OLED | ENABLE_LCD | SERIAL_MONITOR */
display_Update();
#ifdef ENABLE_GLOBAL_LOG
// Enable log again
dont_log = false;
#endif
}
#if (defined(ENABLE_OLED) || defined(ENABLE_LCD))