From ae52422502da26e53766d450be3608c4d9bf7ebd Mon Sep 17 00:00:00 2001 From: Roger Braunstein Date: Sun, 30 Jun 2024 12:31:54 -0700 Subject: [PATCH] Alternate fix --- Cart_Reader/OSCR.h | 2 ++ Cart_Reader/SFM.ino | 5 +++++ 2 files changed, 7 insertions(+) diff --git a/Cart_Reader/OSCR.h b/Cart_Reader/OSCR.h index 943a6d8..6381d86 100644 --- a/Cart_Reader/OSCR.h +++ b/Cart_Reader/OSCR.h @@ -124,7 +124,9 @@ enum CORES: uint8_t { # endif # ifdef ENABLE_SFM CORE_SFM, +# ifdef ENABLE_FLASH CORE_SFM_FLASH, +# endif CORE_SFM_GAME, # endif # ifdef ENABLE_GBX diff --git a/Cart_Reader/SFM.ino b/Cart_Reader/SFM.ino index 276c51a..ab144fd 100644 --- a/Cart_Reader/SFM.ino +++ b/Cart_Reader/SFM.ino @@ -58,14 +58,19 @@ void sfmMenu() { case 0: sfmGameMenu(); break; +#ifdef CORE_SFM_FLASH // Flash menu case 1: mode = CORE_SFM_FLASH; break; +#endif // Reset case 2: resetArduino(); break; + default: + print_MissingModule(); + break; } }