Skip to content

Commit

Permalink
Reenable LCD code and disable preheat menus to save code space
Browse files Browse the repository at this point in the history
  • Loading branch information
lwalkera committed Aug 20, 2014
1 parent e41c849 commit 6e63641
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Marlin/Configuration.h
Original file line number Diff line number Diff line change
Expand Up @@ -447,7 +447,10 @@ const bool Z_MAX_ENDSTOP_INVERTING = false; // set to true to invert the logic o
//#define ENCODER_PULSES_PER_STEP 1 // Increase if you have a high resolution encoder
//#define ENCODER_STEPS_PER_MENU_ITEM 5 // Set according to ENCODER_PULSES_PER_STEP or your liking
#define NEWPANEL

//Uncomment the lines below to save program flash space
#define DISABLE_LCD_MOTION_MENU
#define DISABLE_PREHEAT_MENU

//#define ULTIMAKERCONTROLLER //as available from the ultimaker online store.
#define ULTIPANEL //the ultipanel as on thingiverse
Expand Down
6 changes: 6 additions & 0 deletions Marlin/ultralcd.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,10 @@ static void lcd_prepare_menu();
static void lcd_move_menu();
static void lcd_control_menu();
static void lcd_control_temperature_menu();
#ifndef DISABLE_PREHEAT_MENU
static void lcd_control_temperature_preheat_pla_settings_menu();
static void lcd_control_temperature_preheat_abs_settings_menu();
#endif
#ifndef DISABLE_LCD_MOTION_MENU
static void lcd_control_motion_menu();
#endif
Expand Down Expand Up @@ -671,11 +673,14 @@ static void lcd_control_temperature_menu()
MENU_ITEM_EDIT(float3, MSG_PID_C, &Kc, 1, 9990);
# endif//PID_ADD_EXTRUSION_RATE
#endif//PIDTEMP
#ifndef DISABLE_PREHEAT_MENU
MENU_ITEM(submenu, MSG_PREHEAT_PLA_SETTINGS, lcd_control_temperature_preheat_pla_settings_menu);
MENU_ITEM(submenu, MSG_PREHEAT_ABS_SETTINGS, lcd_control_temperature_preheat_abs_settings_menu);
#endif
END_MENU();
}

#ifndef DISABLE_PREHEAT_MENU
static void lcd_control_temperature_preheat_pla_settings_menu()
{
START_MENU();
Expand Down Expand Up @@ -705,6 +710,7 @@ static void lcd_control_temperature_preheat_abs_settings_menu()
#endif
END_MENU();
}
#endif

#ifndef DISABLE_LCD_MOTION_MENU
static void lcd_control_motion_menu()
Expand Down

0 comments on commit 6e63641

Please sign in to comment.