Browse Source

🐛 Fix CUSTOM_MENU_MAIN_SCRIPT_DONE

Fix #22762
Scott Lahteine 3 years ago
parent
commit
000d412da6
1 changed files with 2 additions and 2 deletions
  1. 2
    2
      Marlin/src/lcd/menu/menu_main.cpp

+ 2
- 2
Marlin/src/lcd/menu/menu_main.cpp View File

118
 
118
 
119
     #define HAS_CUSTOM_ITEM_MAIN(N) (defined(MAIN_MENU_ITEM_##N##_DESC) && defined(MAIN_MENU_ITEM_##N##_GCODE))
119
     #define HAS_CUSTOM_ITEM_MAIN(N) (defined(MAIN_MENU_ITEM_##N##_DESC) && defined(MAIN_MENU_ITEM_##N##_GCODE))
120
 
120
 
121
-    #ifdef MAIN_MENU_ITEM_SCRIPT_DONE
122
-      #define _DONE_SCRIPT "\n" MAIN_MENU_ITEM_SCRIPT_DONE
121
+    #ifdef CUSTOM_MENU_MAIN_SCRIPT_DONE
122
+      #define _DONE_SCRIPT "\n" CUSTOM_MENU_MAIN_SCRIPT_DONE
123
     #else
123
     #else
124
       #define _DONE_SCRIPT ""
124
       #define _DONE_SCRIPT ""
125
     #endif
125
     #endif

Loading…
Cancel
Save