@ -479,7 +479,7 @@ uint16_t max_display_update_time = 0;
# if IS_KINEMATIC
bool processing_manual_move = false ;
float manual_move_offset = 0. 0;
float manual_move_offset = 0;
# else
constexpr bool processing_manual_move = false ;
# endif
@ -1285,13 +1285,13 @@ void lcd_quick_feedback(const bool clear_buttons) {
ubl_encoderPosition = ( ubl . encoder_diff > 0 ) ? 1 : - 1 ;
ubl . encoder_diff = 0 ;
mesh_edit_accumulator + = float ( ubl_encoderPosition ) * 0.005 / 2.0 ;
mesh_edit_accumulator + = float ( ubl_encoderPosition ) * 0.005 f * 0.5f ;
mesh_edit_value = mesh_edit_accumulator ;
encoderPosition = 0 ;
lcdDrawUpdate = LCDVIEW_CALL_REDRAW_NEXT ;
const int32_t rounded = ( int32_t ) ( mesh_edit_value * 1000. 0) ;
mesh_edit_value = float ( rounded - ( rounded % 5L ) ) / 1000. 0;
const int32_t rounded = ( int32_t ) ( mesh_edit_value * 100 0) ;
mesh_edit_value = float ( rounded - ( rounded % 5L ) ) / 100 0;
}
if ( lcdDrawUpdate ) {
@ -1419,7 +1419,7 @@ void lcd_quick_feedback(const bool clear_buttons) {
// Leveling Fade Height
//
# if ENABLED(ENABLE_LEVELING_FADE_HEIGHT) && DISABLED(SLIM_LCD_MENUS)
MENU_MULTIPLIER_ITEM_EDIT_CALLBACK ( float3 , MSG_Z_FADE_HEIGHT , & new_z_fade_height , 0.0 , 100. 0, _lcd_set_z_fade_height ) ;
MENU_MULTIPLIER_ITEM_EDIT_CALLBACK ( float3 , MSG_Z_FADE_HEIGHT , & new_z_fade_height , 0 , 10 0, _lcd_set_z_fade_height ) ;
# endif
//
@ -1978,7 +1978,7 @@ void lcd_quick_feedback(const bool clear_buttons) {
//
if ( encoderPosition ) {
const float z = current_position [ Z_AXIS ] + float ( ( int32_t ) encoderPosition ) * ( MBL_Z_STEP ) ;
line_to_z ( constrain ( z , - ( LCD_PROBE_Z_RANGE ) * 0.5 , ( LCD_PROBE_Z_RANGE ) * 0.5 ) ) ;
line_to_z ( constrain ( z , - ( LCD_PROBE_Z_RANGE ) * 0.5 f , ( LCD_PROBE_Z_RANGE ) * 0.5 f ) ) ;
lcdDrawUpdate = LCDVIEW_CALL_REDRAW_NEXT ;
encoderPosition = 0 ;
}
@ -1988,7 +1988,7 @@ void lcd_quick_feedback(const bool clear_buttons) {
//
if ( lcdDrawUpdate ) {
const float v = current_position [ Z_AXIS ] ;
lcd_implementation_drawedit ( PSTR ( MSG_MOVE_Z ) , ftostr43sign ( v + ( v < 0 ? - 0.0001 : 0.0001 ) , ' + ' ) ) ;
lcd_implementation_drawedit ( PSTR ( MSG_MOVE_Z ) , ftostr43sign ( v + ( v < 0 ? - 0.0001 f : 0.0001 f ) , ' + ' ) ) ;
}
}
@ -2571,7 +2571,7 @@ void lcd_quick_feedback(const bool clear_buttons) {
MENU_ITEM ( submenu , MSG_UBL_TOOLS , _lcd_ubl_tools_menu ) ;
MENU_ITEM ( gcode , MSG_UBL_INFO_UBL , PSTR ( " G29 W " ) ) ;
# if ENABLED(ENABLE_LEVELING_FADE_HEIGHT)
MENU_MULTIPLIER_ITEM_EDIT_CALLBACK ( float3 , MSG_Z_FADE_HEIGHT , & new_z_fade_height , 0.0 , 100. 0, _lcd_set_z_fade_height ) ;
MENU_MULTIPLIER_ITEM_EDIT_CALLBACK ( float3 , MSG_Z_FADE_HEIGHT , & new_z_fade_height , 0 , 10 0, _lcd_set_z_fade_height ) ;
# endif
END_MENU ( ) ;
}
@ -2627,7 +2627,7 @@ void lcd_quick_feedback(const bool clear_buttons) {
// Z Fade Height
# if ENABLED(ENABLE_LEVELING_FADE_HEIGHT)
MENU_MULTIPLIER_ITEM_EDIT_CALLBACK ( float3 , MSG_Z_FADE_HEIGHT , & new_z_fade_height , 0.0 , 100. 0, _lcd_set_z_fade_height ) ;
MENU_MULTIPLIER_ITEM_EDIT_CALLBACK ( float3 , MSG_Z_FADE_HEIGHT , & new_z_fade_height , 0 , 10 0, _lcd_set_z_fade_height ) ;
# endif
//
@ -2713,7 +2713,7 @@ void lcd_quick_feedback(const bool clear_buttons) {
MENU_ITEM_EDIT_CALLBACK ( bool , MSG_BED_LEVELING , & new_level_state , _lcd_toggle_bed_leveling ) ;
}
# if ENABLED(ENABLE_LEVELING_FADE_HEIGHT)
MENU_MULTIPLIER_ITEM_EDIT_CALLBACK ( float3 , MSG_Z_FADE_HEIGHT , & new_z_fade_height , 0.0 , 100. 0, _lcd_set_z_fade_height ) ;
MENU_MULTIPLIER_ITEM_EDIT_CALLBACK ( float3 , MSG_Z_FADE_HEIGHT , & new_z_fade_height , 0 , 10 0, _lcd_set_z_fade_height ) ;
# endif
# endif
@ -2877,15 +2877,15 @@ void lcd_quick_feedback(const bool clear_buttons) {
void lcd_delta_settings ( ) {
START_MENU ( ) ;
MENU_BACK ( MSG_DELTA_CALIBRATE ) ;
MENU_ITEM_EDIT_CALLBACK ( float52sign , MSG_DELTA_HEIGHT , & delta_height , delta_height - 10.0 , delta_height + 10. 0, _recalc_delta_settings ) ;
MENU_ITEM_EDIT_CALLBACK ( float43 , " Ex " , & delta_endstop_adj [ A_AXIS ] , - 5.0 , 5.0 , _recalc_delta_settings ) ;
MENU_ITEM_EDIT_CALLBACK ( float43 , " Ey " , & delta_endstop_adj [ B_AXIS ] , - 5.0 , 5.0 , _recalc_delta_settings ) ;
MENU_ITEM_EDIT_CALLBACK ( float43 , " Ez " , & delta_endstop_adj [ C_AXIS ] , - 5.0 , 5.0 , _recalc_delta_settings ) ;
MENU_ITEM_EDIT_CALLBACK ( float52sign , MSG_DELTA_RADIUS , & delta_radius , delta_radius - 5.0 , delta_radius + 5.0 , _recalc_delta_settings ) ;
MENU_ITEM_EDIT_CALLBACK ( float43 , " Tx " , & delta_tower_angle_trim [ A_AXIS ] , - 5.0 , 5.0 , _recalc_delta_settings ) ;
MENU_ITEM_EDIT_CALLBACK ( float43 , " Ty " , & delta_tower_angle_trim [ B_AXIS ] , - 5.0 , 5.0 , _recalc_delta_settings ) ;
MENU_ITEM_EDIT_CALLBACK ( float43 , " Tz " , & delta_tower_angle_trim [ C_AXIS ] , - 5.0 , 5.0 , _recalc_delta_settings ) ;
MENU_ITEM_EDIT_CALLBACK ( float52sign , MSG_DELTA_DIAG_ROD , & delta_diagonal_rod , delta_diagonal_rod - 5.0 , delta_diagonal_rod + 5.0 , _recalc_delta_settings ) ;
MENU_ITEM_EDIT_CALLBACK ( float52sign , MSG_DELTA_HEIGHT , & delta_height , delta_height - 10 , delta_height + 1 0, _recalc_delta_settings ) ;
MENU_ITEM_EDIT_CALLBACK ( float43 , " Ex " , & delta_endstop_adj [ A_AXIS ] , - 5 , 5 , _recalc_delta_settings ) ;
MENU_ITEM_EDIT_CALLBACK ( float43 , " Ey " , & delta_endstop_adj [ B_AXIS ] , - 5 , 5 , _recalc_delta_settings ) ;
MENU_ITEM_EDIT_CALLBACK ( float43 , " Ez " , & delta_endstop_adj [ C_AXIS ] , - 5 , 5 , _recalc_delta_settings ) ;
MENU_ITEM_EDIT_CALLBACK ( float52sign , MSG_DELTA_RADIUS , & delta_radius , delta_radius - 5 , delta_radius + 5 , _recalc_delta_settings ) ;
MENU_ITEM_EDIT_CALLBACK ( float43 , " Tx " , & delta_tower_angle_trim [ A_AXIS ] , - 5 , 5 , _recalc_delta_settings ) ;
MENU_ITEM_EDIT_CALLBACK ( float43 , " Ty " , & delta_tower_angle_trim [ B_AXIS ] , - 5 , 5 , _recalc_delta_settings ) ;
MENU_ITEM_EDIT_CALLBACK ( float43 , " Tz " , & delta_tower_angle_trim [ C_AXIS ] , - 5 , 5 , _recalc_delta_settings ) ;
MENU_ITEM_EDIT_CALLBACK ( float52sign , MSG_DELTA_DIAG_ROD , & delta_diagonal_rod , delta_diagonal_rod - 5 , delta_diagonal_rod + 5 , _recalc_delta_settings ) ;
END_MENU ( ) ;
}
@ -2981,7 +2981,7 @@ void lcd_quick_feedback(const bool clear_buttons) {
# endif
manual_move_e_index = eindex > = 0 ? eindex : active_extruder ;
# endif
manual_move_start_time = millis ( ) + ( move_menu_scale < 0.99 ? 0UL : 250UL ) ; // delay for bigger moves
manual_move_start_time = millis ( ) + ( move_menu_scale < 0.99 f ? 0UL : 250UL ) ; // delay for bigger moves
manual_move_axis = ( int8_t ) axis ;
}
@ -3065,7 +3065,7 @@ void lcd_quick_feedback(const bool clear_buttons) {
+ manual_move_offset
# endif
, axis ) ;
lcd_implementation_drawedit ( name , move_menu_scale > = 0.1 ? ftostr41sign ( pos ) : ftostr43sign ( pos ) ) ;
lcd_implementation_drawedit ( name , move_menu_scale > = 0.1 f ? ftostr41sign ( pos ) : ftostr43sign ( pos ) ) ;
}
}
void lcd_move_x ( ) { _lcd_move_xyz ( PSTR ( MSG_MOVE_X ) , X_AXIS ) ; }
@ -3150,9 +3150,9 @@ void lcd_quick_feedback(const bool clear_buttons) {
move_menu_scale = scale ;
lcd_goto_screen ( _manual_move_func_ptr ) ;
}
void lcd_move_menu_10mm ( ) { _goto_manual_move ( 10. 0) ; }
void lcd_move_menu_1mm ( ) { _goto_manual_move ( 1.0 ) ; }
void lcd_move_menu_01mm ( ) { _goto_manual_move ( 0.1 ) ; }
void lcd_move_menu_10mm ( ) { _goto_manual_move ( 1 0) ; }
void lcd_move_menu_1mm ( ) { _goto_manual_move ( 1 ) ; }
void lcd_move_menu_01mm ( ) { _goto_manual_move ( 0.1 f ) ; }
void _lcd_move_distance_menu ( const AxisEnum axis , const screenFunc_t func ) {
_manual_move_func_ptr = func ;
@ -3527,9 +3527,9 @@ void lcd_quick_feedback(const bool clear_buttons) {
//
# if ENABLED(AUTOTEMP) && HAS_TEMP_HOTEND
MENU_ITEM_EDIT ( bool , MSG_AUTOTEMP , & planner . autotemp_enabled ) ;
MENU_ITEM_EDIT ( float3 , MSG_MIN , & planner . autotemp_min , 0 , HEATER_0_MAXTEMP - 15 ) ;
MENU_ITEM_EDIT ( float3 , MSG_MAX , & planner . autotemp_max , 0 , HEATER_0_MAXTEMP - 15 ) ;
MENU_ITEM_EDIT ( float52 , MSG_FACTOR , & planner . autotemp_factor , 0.0 , 1.0 ) ;
MENU_ITEM_EDIT ( float3 , MSG_MIN , & planner . autotemp_min , 0 , float ( HEATER_0_MAXTEMP ) - 15 ) ;
MENU_ITEM_EDIT ( float3 , MSG_MAX , & planner . autotemp_max , 0 , float ( HEATER_0_MAXTEMP ) - 15 ) ;
MENU_ITEM_EDIT ( float52 , MSG_FACTOR , & planner . autotemp_factor , 0 , 1 ) ;
# endif
//
@ -3546,7 +3546,7 @@ void lcd_quick_feedback(const bool clear_buttons) {
raw_Ki = unscalePID_i ( PID_PARAM ( Ki , eindex ) ) ; \
raw_Kd = unscalePID_d ( PID_PARAM ( Kd , eindex ) ) ; \
MENU_ITEM_EDIT ( float52sign , MSG_PID_P ELABEL , & PID_PARAM ( Kp , eindex ) , 1 , 9990 ) ; \
MENU_ITEM_EDIT_CALLBACK ( float52sign , MSG_PID_I ELABEL , & raw_Ki , 0.01 , 9990 , copy_and_scalePID_i_E # # eindex ) ; \
MENU_ITEM_EDIT_CALLBACK ( float52sign , MSG_PID_I ELABEL , & raw_Ki , 0.01 f , 9990 , copy_and_scalePID_i_E # # eindex ) ; \
MENU_ITEM_EDIT_CALLBACK ( float52sign , MSG_PID_D ELABEL , & raw_Kd , 1 , 9990 , copy_and_scalePID_d_E # # eindex )
# if ENABLED(PID_EXTRUSION_SCALING)
@ -3668,7 +3668,7 @@ void lcd_quick_feedback(const bool clear_buttons) {
if ( e = = active_extruder )
_planner_refresh_positioning ( ) ;
else
planner . steps_to_mm [ E_AXIS + e ] = 1.0 / planner . axis_steps_per_mm [ E_AXIS + e ] ;
planner . steps_to_mm [ E_AXIS + e ] = 1.0 f / planner . axis_steps_per_mm [ E_AXIS + e ] ;
}
void _planner_refresh_e0_positioning ( ) { _planner_refresh_e_positioning ( 0 ) ; }
void _planner_refresh_e1_positioning ( ) { _planner_refresh_e_positioning ( 1 ) ; }
@ -3764,14 +3764,14 @@ void lcd_quick_feedback(const bool clear_buttons) {
MENU_BACK ( MSG_MOTION ) ;
# if ENABLED(JUNCTION_DEVIATION)
MENU_ITEM_EDIT_CALLBACK ( float43 , MSG_JUNCTION_DEVIATION , & planner . junction_deviation_mm , 0.01 , 0.3 , planner . recalculate_max_e_jerk ) ;
MENU_ITEM_EDIT_CALLBACK ( float43 , MSG_JUNCTION_DEVIATION , & planner . junction_deviation_mm , 0.01 f , 0.3 f , planner . recalculate_max_e_jerk ) ;
# else
MENU_MULTIPLIER_ITEM_EDIT ( float3 , MSG_VA_JERK , & planner . max_jerk [ A_AXIS ] , 1 , 990 ) ;
MENU_MULTIPLIER_ITEM_EDIT ( float3 , MSG_VB_JERK , & planner . max_jerk [ B_AXIS ] , 1 , 990 ) ;
# if ENABLED(DELTA)
MENU_MULTIPLIER_ITEM_EDIT ( float3 , MSG_VC_JERK , & planner . max_jerk [ C_AXIS ] , 1 , 990 ) ;
# else
MENU_MULTIPLIER_ITEM_EDIT ( float52sign , MSG_VC_JERK , & planner . max_jerk [ C_AXIS ] , 0.1 , 990 ) ;
MENU_MULTIPLIER_ITEM_EDIT ( float52sign , MSG_VC_JERK , & planner . max_jerk [ C_AXIS ] , 0.1 f , 990 ) ;
# endif
MENU_MULTIPLIER_ITEM_EDIT ( float3 , MSG_VE_JERK , & planner . max_jerk [ E_AXIS ] , 1 , 990 ) ;
# endif
@ -3869,17 +3869,17 @@ void lcd_quick_feedback(const bool clear_buttons) {
if ( parser . volumetric_enabled ) {
# if EXTRUDERS == 1
MENU_MULTIPLIER_ITEM_EDIT_CALLBACK ( float43 , MSG_FILAMENT_DIAM , & planner . filament_size [ 0 ] , 1.5 , 3.25 , planner . calculate_volumetric_multipliers ) ;
MENU_MULTIPLIER_ITEM_EDIT_CALLBACK ( float43 , MSG_FILAMENT_DIAM , & planner . filament_size [ 0 ] , 1.5 f , 3.25 f , planner . calculate_volumetric_multipliers ) ;
# else // EXTRUDERS > 1
MENU_MULTIPLIER_ITEM_EDIT_CALLBACK ( float43 , MSG_FILAMENT_DIAM , & planner . filament_size [ active_extruder ] , 1.5 , 3.25 , planner . calculate_volumetric_multipliers ) ;
MENU_MULTIPLIER_ITEM_EDIT_CALLBACK ( float43 , MSG_FILAMENT_DIAM MSG_DIAM_E1 , & planner . filament_size [ 0 ] , 1.5 , 3.25 , planner . calculate_volumetric_multipliers ) ;
MENU_MULTIPLIER_ITEM_EDIT_CALLBACK ( float43 , MSG_FILAMENT_DIAM MSG_DIAM_E2 , & planner . filament_size [ 1 ] , 1.5 , 3.25 , planner . calculate_volumetric_multipliers ) ;
MENU_MULTIPLIER_ITEM_EDIT_CALLBACK ( float43 , MSG_FILAMENT_DIAM , & planner . filament_size [ active_extruder ] , 1.5 f , 3.25 f , planner . calculate_volumetric_multipliers ) ;
MENU_MULTIPLIER_ITEM_EDIT_CALLBACK ( float43 , MSG_FILAMENT_DIAM MSG_DIAM_E1 , & planner . filament_size [ 0 ] , 1.5 f , 3.25 f , planner . calculate_volumetric_multipliers ) ;
MENU_MULTIPLIER_ITEM_EDIT_CALLBACK ( float43 , MSG_FILAMENT_DIAM MSG_DIAM_E2 , & planner . filament_size [ 1 ] , 1.5 f , 3.25 f , planner . calculate_volumetric_multipliers ) ;
# if EXTRUDERS > 2
MENU_MULTIPLIER_ITEM_EDIT_CALLBACK ( float43 , MSG_FILAMENT_DIAM MSG_DIAM_E3 , & planner . filament_size [ 2 ] , 1.5 , 3.25 , planner . calculate_volumetric_multipliers ) ;
MENU_MULTIPLIER_ITEM_EDIT_CALLBACK ( float43 , MSG_FILAMENT_DIAM MSG_DIAM_E3 , & planner . filament_size [ 2 ] , 1.5 f , 3.25 f , planner . calculate_volumetric_multipliers ) ;
# if EXTRUDERS > 3
MENU_MULTIPLIER_ITEM_EDIT_CALLBACK ( float43 , MSG_FILAMENT_DIAM MSG_DIAM_E4 , & planner . filament_size [ 3 ] , 1.5 , 3.25 , planner . calculate_volumetric_multipliers ) ;
MENU_MULTIPLIER_ITEM_EDIT_CALLBACK ( float43 , MSG_FILAMENT_DIAM MSG_DIAM_E4 , & planner . filament_size [ 3 ] , 1.5 f , 3.25 f , planner . calculate_volumetric_multipliers ) ;
# if EXTRUDERS > 4
MENU_MULTIPLIER_ITEM_EDIT_CALLBACK ( float43 , MSG_FILAMENT_DIAM MSG_DIAM_E5 , & planner . filament_size [ 4 ] , 1.5 , 3.25 , planner . calculate_volumetric_multipliers ) ;
MENU_MULTIPLIER_ITEM_EDIT_CALLBACK ( float43 , MSG_FILAMENT_DIAM MSG_DIAM_E5 , & planner . filament_size [ 4 ] , 1.5 f , 3.25 f , planner . calculate_volumetric_multipliers ) ;
# endif // EXTRUDERS > 4
# endif // EXTRUDERS > 3
# endif // EXTRUDERS > 2
@ -3892,39 +3892,39 @@ void lcd_quick_feedback(const bool clear_buttons) {
# if ENABLED(PREVENT_LENGTHY_EXTRUDE)
EXTRUDE_MAXLENGTH
# else
999.0f
999
# endif
;
# if EXTRUDERS == 1
MENU_MULTIPLIER_ITEM_EDIT ( float3 , MSG_FILAMENT_UNLOAD , & filament_change_unload_length [ 0 ] , 0. 0, extrude_maxlength ) ;
MENU_MULTIPLIER_ITEM_EDIT ( float3 , MSG_FILAMENT_UNLOAD , & filament_change_unload_length [ 0 ] , 0, extrude_maxlength ) ;
# else // EXTRUDERS > 1
MENU_MULTIPLIER_ITEM_EDIT ( float3 , MSG_FILAMENT_UNLOAD , & filament_change_unload_length [ active_extruder ] , 0. 0, extrude_maxlength ) ;
MENU_MULTIPLIER_ITEM_EDIT ( float3 , MSG_FILAMENT_UNLOAD MSG_DIAM_E1 , & filament_change_unload_length [ 0 ] , 0. 0, extrude_maxlength ) ;
MENU_MULTIPLIER_ITEM_EDIT ( float3 , MSG_FILAMENT_UNLOAD MSG_DIAM_E2 , & filament_change_unload_length [ 1 ] , 0. 0, extrude_maxlength ) ;
MENU_MULTIPLIER_ITEM_EDIT ( float3 , MSG_FILAMENT_UNLOAD , & filament_change_unload_length [ active_extruder ] , 0, extrude_maxlength ) ;
MENU_MULTIPLIER_ITEM_EDIT ( float3 , MSG_FILAMENT_UNLOAD MSG_DIAM_E1 , & filament_change_unload_length [ 0 ] , 0, extrude_maxlength ) ;
MENU_MULTIPLIER_ITEM_EDIT ( float3 , MSG_FILAMENT_UNLOAD MSG_DIAM_E2 , & filament_change_unload_length [ 1 ] , 0, extrude_maxlength ) ;
# if EXTRUDERS > 2
MENU_MULTIPLIER_ITEM_EDIT ( float3 , MSG_FILAMENT_UNLOAD MSG_DIAM_E3 , & filament_change_unload_length [ 2 ] , 0. 0, extrude_maxlength ) ;
MENU_MULTIPLIER_ITEM_EDIT ( float3 , MSG_FILAMENT_UNLOAD MSG_DIAM_E3 , & filament_change_unload_length [ 2 ] , 0, extrude_maxlength ) ;
# if EXTRUDERS > 3
MENU_MULTIPLIER_ITEM_EDIT ( float3 , MSG_FILAMENT_UNLOAD MSG_DIAM_E4 , & filament_change_unload_length [ 3 ] , 0. 0, extrude_maxlength ) ;
MENU_MULTIPLIER_ITEM_EDIT ( float3 , MSG_FILAMENT_UNLOAD MSG_DIAM_E4 , & filament_change_unload_length [ 3 ] , 0, extrude_maxlength ) ;
# if EXTRUDERS > 4
MENU_MULTIPLIER_ITEM_EDIT ( float3 , MSG_FILAMENT_UNLOAD MSG_DIAM_E5 , & filament_change_unload_length [ 4 ] , 0. 0, extrude_maxlength ) ;
MENU_MULTIPLIER_ITEM_EDIT ( float3 , MSG_FILAMENT_UNLOAD MSG_DIAM_E5 , & filament_change_unload_length [ 4 ] , 0, extrude_maxlength ) ;
# endif // EXTRUDERS > 4
# endif // EXTRUDERS > 3
# endif // EXTRUDERS > 2
# endif // EXTRUDERS > 1
# if EXTRUDERS == 1
MENU_MULTIPLIER_ITEM_EDIT ( float3 , MSG_FILAMENT_LOAD , & filament_change_load_length [ 0 ] , 0. 0, extrude_maxlength ) ;
MENU_MULTIPLIER_ITEM_EDIT ( float3 , MSG_FILAMENT_LOAD , & filament_change_load_length [ 0 ] , 0, extrude_maxlength ) ;
# else // EXTRUDERS > 1
MENU_MULTIPLIER_ITEM_EDIT ( float3 , MSG_FILAMENT_LOAD , & filament_change_load_length [ active_extruder ] , 0. 0, extrude_maxlength ) ;
MENU_MULTIPLIER_ITEM_EDIT ( float3 , MSG_FILAMENT_LOAD MSG_DIAM_E1 , & filament_change_load_length [ 0 ] , 0. 0, extrude_maxlength ) ;
MENU_MULTIPLIER_ITEM_EDIT ( float3 , MSG_FILAMENT_LOAD MSG_DIAM_E2 , & filament_change_load_length [ 1 ] , 0. 0, extrude_maxlength ) ;
MENU_MULTIPLIER_ITEM_EDIT ( float3 , MSG_FILAMENT_LOAD , & filament_change_load_length [ active_extruder ] , 0, extrude_maxlength ) ;
MENU_MULTIPLIER_ITEM_EDIT ( float3 , MSG_FILAMENT_LOAD MSG_DIAM_E1 , & filament_change_load_length [ 0 ] , 0, extrude_maxlength ) ;
MENU_MULTIPLIER_ITEM_EDIT ( float3 , MSG_FILAMENT_LOAD MSG_DIAM_E2 , & filament_change_load_length [ 1 ] , 0, extrude_maxlength ) ;
# if EXTRUDERS > 2
MENU_MULTIPLIER_ITEM_EDIT ( float3 , MSG_FILAMENT_LOAD MSG_DIAM_E3 , & filament_change_load_length [ 2 ] , 0. 0, extrude_maxlength ) ;
MENU_MULTIPLIER_ITEM_EDIT ( float3 , MSG_FILAMENT_LOAD MSG_DIAM_E3 , & filament_change_load_length [ 2 ] , 0, extrude_maxlength ) ;
# if EXTRUDERS > 3
MENU_MULTIPLIER_ITEM_EDIT ( float3 , MSG_FILAMENT_LOAD MSG_DIAM_E4 , & filament_change_load_length [ 3 ] , 0. 0, extrude_maxlength ) ;
MENU_MULTIPLIER_ITEM_EDIT ( float3 , MSG_FILAMENT_LOAD MSG_DIAM_E4 , & filament_change_load_length [ 3 ] , 0, extrude_maxlength ) ;
# if EXTRUDERS > 4
MENU_MULTIPLIER_ITEM_EDIT ( float3 , MSG_FILAMENT_LOAD MSG_DIAM_E5 , & filament_change_load_length [ 4 ] , 0. 0, extrude_maxlength ) ;
MENU_MULTIPLIER_ITEM_EDIT ( float3 , MSG_FILAMENT_LOAD MSG_DIAM_E5 , & filament_change_load_length [ 4 ] , 0, extrude_maxlength ) ;
# endif // EXTRUDERS > 4
# endif // EXTRUDERS > 3
# endif // EXTRUDERS > 2
@ -4824,9 +4824,9 @@ void lcd_quick_feedback(const bool clear_buttons) {
if ( ( int32_t ) encoderPosition < 0 ) encoderPosition = 0 ; \
if ( ( int32_t ) encoderPosition > maxEditValue ) encoderPosition = maxEditValue ; \
if ( lcdDrawUpdate ) \
lcd_implementation_drawedit ( editLabel , _strFunc ( ( ( _type ) ( ( int32_t ) encoderPosition + minEditValue ) ) * ( 1.0 / _scale ) ) ) ; \
lcd_implementation_drawedit ( editLabel , _strFunc ( ( ( _type ) ( ( int32_t ) encoderPosition + minEditValue ) ) * ( 1.0 f / _scale ) ) ) ; \
if ( lcd_clicked | | ( liveEdit & & lcdDrawUpdate ) ) { \
_type value = ( ( _type ) ( ( int32_t ) encoderPosition + minEditValue ) ) * ( 1.0 / _scale ) ; \
_type value = ( ( _type ) ( ( int32_t ) encoderPosition + minEditValue ) ) * ( 1.0 f / _scale ) ; \
if ( editValue ! = NULL ) * ( ( _type * ) editValue ) = value ; \
if ( callbackFunc & & ( liveEdit | | lcd_clicked ) ) ( * callbackFunc ) ( ) ; \
if ( lcd_clicked ) lcd_goto_previous_menu ( ) ; \
@ -4857,14 +4857,14 @@ void lcd_quick_feedback(const bool clear_buttons) {
DEFINE_MENU_EDIT_TYPE ( int16_t , int3 , itostr3 , 1 ) ;
DEFINE_MENU_EDIT_TYPE ( uint8_t , int8 , i8tostr3 , 1 ) ;
DEFINE_MENU_EDIT_TYPE ( float , float3 , ftostr3 , 1.0 ) ;
DEFINE_MENU_EDIT_TYPE ( float , float52 , ftostr52 , 100. 0) ;
DEFINE_MENU_EDIT_TYPE ( float , float43 , ftostr43sign , 1000. 0) ;
DEFINE_MENU_EDIT_TYPE ( float , float5 , ftostr5rj , 0.01 ) ;
DEFINE_MENU_EDIT_TYPE ( float , float51 , ftostr51sign , 10. 0) ;
DEFINE_MENU_EDIT_TYPE ( float , float52sign , ftostr52sign , 100. 0) ;
DEFINE_MENU_EDIT_TYPE ( float , float62 , ftostr62rj , 100. 0) ;
DEFINE_MENU_EDIT_TYPE ( uint32_t , long5 , ftostr5rj , 0.01 ) ;
DEFINE_MENU_EDIT_TYPE ( float , float3 , ftostr3 , 1 ) ;
DEFINE_MENU_EDIT_TYPE ( float , float52 , ftostr52 , 10 0) ;
DEFINE_MENU_EDIT_TYPE ( float , float43 , ftostr43sign , 100 0) ;
DEFINE_MENU_EDIT_TYPE ( float , float5 , ftostr5rj , 0.01 f ) ;
DEFINE_MENU_EDIT_TYPE ( float , float51 , ftostr51sign , 1 0) ;
DEFINE_MENU_EDIT_TYPE ( float , float52sign , ftostr52sign , 10 0) ;
DEFINE_MENU_EDIT_TYPE ( float , float62 , ftostr62rj , 10 0) ;
DEFINE_MENU_EDIT_TYPE ( uint32_t , long5 , ftostr5rj , 0.01 f ) ;
/**
*
@ -5228,7 +5228,7 @@ void lcd_update() {
if ( lastEncoderMovementMillis ) {
// Note that the rate is always calculated between two passes through the
// loop and that the abs of the encoderDiff value is tracked.
float encoderStepRate = float ( encoderMovementSteps ) / float ( ms - lastEncoderMovementMillis ) * 1000. 0;
float encoderStepRate = float ( encoderMovementSteps ) / float ( ms - lastEncoderMovementMillis ) * 100 0;
if ( encoderStepRate > = ENCODER_100X_STEPS_PER_SEC ) encoderMultiplier = 100 ;
else if ( encoderStepRate > = ENCODER_10X_STEPS_PER_SEC ) encoderMultiplier = 10 ;