|
@@ -745,7 +745,7 @@ static void lcd_control_menu()
|
745
|
745
|
MENU_ITEM(back, MSG_MAIN, lcd_main_menu);
|
746
|
746
|
MENU_ITEM(submenu, MSG_TEMPERATURE, lcd_control_temperature_menu);
|
747
|
747
|
MENU_ITEM(submenu, MSG_MOTION, lcd_control_motion_menu);
|
748
|
|
- //MENU_ITEM(submenu, MSG_VOLUMETRIC, lcd_control_volumetric_menu);
|
|
748
|
+ MENU_ITEM(submenu, MSG_VOLUMETRIC, lcd_control_volumetric_menu);
|
749
|
749
|
|
750
|
750
|
#ifdef DOGLCD
|
751
|
751
|
// MENU_ITEM_EDIT(int3, MSG_CONTRAST, &lcd_contrast, 0, 63);
|
|
@@ -880,7 +880,7 @@ static void lcd_control_volumetric_menu()
|
880
|
880
|
START_MENU();
|
881
|
881
|
MENU_ITEM(back, MSG_CONTROL, lcd_control_menu);
|
882
|
882
|
|
883
|
|
- MENU_ITEM_EDIT(bool, MSG_VOLUMETRIC_ENABLED, &volumetric_enabled);
|
|
883
|
+ MENU_ITEM_EDIT_CALLBACK(bool, MSG_VOLUMETRIC_ENABLED, &volumetric_enabled, calculate_volumetric_multipliers);
|
884
|
884
|
|
885
|
885
|
if (volumetric_enabled) {
|
886
|
886
|
MENU_ITEM_EDIT_CALLBACK(float43, MSG_FILAMENT_SIZE_EXTRUDER_0, &filament_size[0], DEFAULT_NOMINAL_FILAMENT_DIA - .5, DEFAULT_NOMINAL_FILAMENT_DIA + .5, calculate_volumetric_multipliers);
|
|
@@ -1114,6 +1114,11 @@ static void menu_action_setting_edit_bool(const char* pstr, bool* ptr)
|
1114
|
1114
|
{
|
1115
|
1115
|
*ptr = !(*ptr);
|
1116
|
1116
|
}
|
|
1117
|
+static void menu_action_setting_edit_callback_bool(const char* pstr, bool* ptr, menuFunc_t callback)
|
|
1118
|
+{
|
|
1119
|
+ menu_action_setting_edit_bool(pstr, ptr);
|
|
1120
|
+ (*callback)();
|
|
1121
|
+}
|
1117
|
1122
|
#endif//ULTIPANEL
|
1118
|
1123
|
|
1119
|
1124
|
/** LCD API **/
|