Explorar o código

Toggle MMU Mode

leptun %!s(int64=4) %!d(string=hai) anos
pai
achega
a821002f02
Modificáronse 3 ficheiros con 4 adicións e 2 borrados
  1. 1 0
      Firmware/messages.c
  2. 1 0
      Firmware/messages.h
  3. 2 2
      Firmware/ultralcd.cpp

+ 1 - 0
Firmware/messages.c

@@ -114,6 +114,7 @@ const char MSG_MODEL[] PROGMEM_I1 = ISTR("Model"); ////
 const char MSG_FIRMWARE[] PROGMEM_I1 = ISTR("Firmware"); ////
 const char MSG_GCODE[] PROGMEM_I1 = ISTR("Gcode"); ////
 const char MSG_NOZZLE_DIAMETER[] PROGMEM_I1 = ISTR("Nozzle d."); ////
+const char MSG_MMU_MODE[] PROGMEM_I1 = ISTR("MMU Mode"); ////
 
 //not internationalized messages
 const char MSG_SD_WORKDIR_FAIL[] PROGMEM_N1 = "workDir open failed"; ////

+ 1 - 0
Firmware/messages.h

@@ -114,6 +114,7 @@ extern const char MSG_MODEL[];
 extern const char MSG_FIRMWARE[];
 extern const char MSG_GCODE[];
 extern const char MSG_NOZZLE_DIAMETER[];
+extern const char MSG_MMU_MODE[];
 
 //not internationalized messages
 extern const char MSG_BROWNOUT_RESET[];

+ 2 - 2
Firmware/ultralcd.cpp

@@ -5217,8 +5217,8 @@ do\
 {\
 	if (mmu_enabled)\
 	{\
-		if (SilentModeMenu_MMU == 0) MENU_ITEM_FUNCTION_P(_i("MMU Mode [Normal]"), lcd_silent_mode_mmu_set); \
-		else MENU_ITEM_FUNCTION_P(_i("MMU Mode[Stealth]"), lcd_silent_mode_mmu_set); \
+		if (SilentModeMenu_MMU == 0) MENU_ITEM_TOGGLE_P(_T(MSG_MMU_MODE), _T(MSG_NORMAL), lcd_silent_mode_mmu_set);\
+		else MENU_ITEM_TOGGLE_P(_T(MSG_MMU_MODE), _T(MSG_STEALTH), lcd_silent_mode_mmu_set);\
 	}\
 }\
 while (0)