|
@ -475,7 +475,7 @@ char *getDispText(int index) { |
|
|
case EXTRUSION_UI: strcpy(public_buf_l, extrude_menu.title); break; |
|
|
case EXTRUSION_UI: strcpy(public_buf_l, extrude_menu.title); break; |
|
|
case CHANGE_SPEED_UI: strcpy(public_buf_l, speed_menu.title); break; |
|
|
case CHANGE_SPEED_UI: strcpy(public_buf_l, speed_menu.title); break; |
|
|
case FAN_UI: strcpy(public_buf_l, fan_menu.title); break; |
|
|
case FAN_UI: strcpy(public_buf_l, fan_menu.title); break; |
|
|
case PRE_HEAT_UI: |
|
|
case PREHEAT_UI: |
|
|
switch (disp_state_stack._disp_state[disp_state_stack._disp_index]) { |
|
|
switch (disp_state_stack._disp_state[disp_state_stack._disp_index]) { |
|
|
case OPERATE_UI: strcpy(public_buf_l, preheat_menu.adjust_title); |
|
|
case OPERATE_UI: strcpy(public_buf_l, preheat_menu.adjust_title); |
|
|
default: strcpy(public_buf_l, preheat_menu.title); break; |
|
|
default: strcpy(public_buf_l, preheat_menu.title); break; |
|
@ -500,7 +500,7 @@ char *getDispText(int index) { |
|
|
case TOOL_UI: strcpy(public_buf_l, tool_menu.title); break; |
|
|
case TOOL_UI: strcpy(public_buf_l, tool_menu.title); break; |
|
|
case WIFI_LIST_UI: TERN_(MKS_WIFI_MODULE, strcpy(public_buf_l, list_menu.title)); break; |
|
|
case WIFI_LIST_UI: TERN_(MKS_WIFI_MODULE, strcpy(public_buf_l, list_menu.title)); break; |
|
|
case MACHINE_PARA_UI: strcpy(public_buf_l, MachinePara_menu.title); break; |
|
|
case MACHINE_PARA_UI: strcpy(public_buf_l, MachinePara_menu.title); break; |
|
|
case BABY_STEP_UI: strcpy(public_buf_l, operation_menu.babystep); break; |
|
|
case BABYSTEP_UI: strcpy(public_buf_l, operation_menu.babystep); break; |
|
|
case EEPROM_SETTINGS_UI: strcpy(public_buf_l, eeprom_menu.title); break; |
|
|
case EEPROM_SETTINGS_UI: strcpy(public_buf_l, eeprom_menu.title); break; |
|
|
case MEDIA_SELECT_UI: strcpy(public_buf_l, media_select_menu.title); break; |
|
|
case MEDIA_SELECT_UI: strcpy(public_buf_l, media_select_menu.title); break; |
|
|
default: break; |
|
|
default: break; |
|
@ -742,7 +742,7 @@ void GUI_RefreshPage() { |
|
|
disp_hotend_temp(); |
|
|
disp_hotend_temp(); |
|
|
} |
|
|
} |
|
|
break; |
|
|
break; |
|
|
case PRE_HEAT_UI: |
|
|
case PREHEAT_UI: |
|
|
if (temps_update_flag) { |
|
|
if (temps_update_flag) { |
|
|
temps_update_flag = false; |
|
|
temps_update_flag = false; |
|
|
disp_desire_temp(); |
|
|
disp_desire_temp(); |
|
@ -864,7 +864,7 @@ void GUI_RefreshPage() { |
|
|
break; |
|
|
break; |
|
|
#endif |
|
|
#endif |
|
|
|
|
|
|
|
|
case BABY_STEP_UI: |
|
|
case BABYSTEP_UI: |
|
|
if (temps_update_flag) { |
|
|
if (temps_update_flag) { |
|
|
temps_update_flag = false; |
|
|
temps_update_flag = false; |
|
|
disp_z_offset_value(); |
|
|
disp_z_offset_value(); |
|
@ -888,7 +888,7 @@ void clear_cur_ui() { |
|
|
case OPERATE_UI: lv_clear_operation(); break; |
|
|
case OPERATE_UI: lv_clear_operation(); break; |
|
|
case PAUSE_UI: break; |
|
|
case PAUSE_UI: break; |
|
|
case EXTRUSION_UI: lv_clear_extrusion(); break; |
|
|
case EXTRUSION_UI: lv_clear_extrusion(); break; |
|
|
case PRE_HEAT_UI: lv_clear_preHeat(); break; |
|
|
case PREHEAT_UI: lv_clear_preHeat(); break; |
|
|
case CHANGE_SPEED_UI: lv_clear_change_speed(); break; |
|
|
case CHANGE_SPEED_UI: lv_clear_change_speed(); break; |
|
|
case FAN_UI: lv_clear_fan(); break; |
|
|
case FAN_UI: lv_clear_fan(); break; |
|
|
case SET_UI: lv_clear_set(); break; |
|
|
case SET_UI: lv_clear_set(); break; |
|
@ -929,15 +929,14 @@ void clear_cur_ui() { |
|
|
case MACHINE_SETTINGS_UI: lv_clear_machine_settings(); break; |
|
|
case MACHINE_SETTINGS_UI: lv_clear_machine_settings(); break; |
|
|
case TEMPERATURE_SETTINGS_UI: break; |
|
|
case TEMPERATURE_SETTINGS_UI: break; |
|
|
case MOTOR_SETTINGS_UI: lv_clear_motor_settings(); break; |
|
|
case MOTOR_SETTINGS_UI: lv_clear_motor_settings(); break; |
|
|
case MACHINETYPE_UI: break; |
|
|
case MACHINE_TYPE_UI: break; |
|
|
case STROKE_UI: break; |
|
|
case STROKE_UI: break; |
|
|
case HOME_DIR_UI: break; |
|
|
case HOME_DIR_UI: break; |
|
|
case ENDSTOP_TYPE_UI: break; |
|
|
case ENDSTOP_TYPE_UI: break; |
|
|
case FILAMENT_SETTINGS_UI: break; |
|
|
case FILAMENT_SETTINGS_UI: break; |
|
|
case LEVELING_SETTIGNS_UI: break; |
|
|
|
|
|
case LEVELING_PARA_UI: lv_clear_level_settings(); break; |
|
|
case LEVELING_PARA_UI: lv_clear_level_settings(); break; |
|
|
case DELTA_LEVELING_PARA_UI: break; |
|
|
case DELTA_LEVELING_PARA_UI: break; |
|
|
case MANUAL_LEVELING_POSIGION_UI: lv_clear_tramming_pos_settings(); break; |
|
|
case MANUAL_LEVELING_POSITION_UI: lv_clear_tramming_pos_settings(); break; |
|
|
case MAXFEEDRATE_UI: lv_clear_max_feedrate_settings(); break; |
|
|
case MAXFEEDRATE_UI: lv_clear_max_feedrate_settings(); break; |
|
|
case STEPS_UI: lv_clear_step_settings(); break; |
|
|
case STEPS_UI: lv_clear_step_settings(); break; |
|
|
case ACCELERATION_UI: lv_clear_acceleration_settings(); break; |
|
|
case ACCELERATION_UI: lv_clear_acceleration_settings(); break; |
|
@ -950,7 +949,7 @@ void clear_cur_ui() { |
|
|
case DOUBLE_Z_UI: break; |
|
|
case DOUBLE_Z_UI: break; |
|
|
case ENABLE_INVERT_UI: break; |
|
|
case ENABLE_INVERT_UI: break; |
|
|
case NUMBER_KEY_UI: lv_clear_number_key(); break; |
|
|
case NUMBER_KEY_UI: lv_clear_number_key(); break; |
|
|
case BABY_STEP_UI: lv_clear_baby_stepping(); break; |
|
|
case BABYSTEP_UI: lv_clear_baby_stepping(); break; |
|
|
case PAUSE_POS_UI: lv_clear_pause_position(); break; |
|
|
case PAUSE_POS_UI: lv_clear_pause_position(); break; |
|
|
#if HAS_TRINAMIC_CONFIG |
|
|
#if HAS_TRINAMIC_CONFIG |
|
|
case TMC_CURRENT_UI: lv_clear_tmc_current_settings(); break; |
|
|
case TMC_CURRENT_UI: lv_clear_tmc_current_settings(); break; |
|
@ -997,7 +996,7 @@ void draw_return_ui() { |
|
|
case OPERATE_UI: lv_draw_operation(); break; |
|
|
case OPERATE_UI: lv_draw_operation(); break; |
|
|
case PAUSE_UI: break; |
|
|
case PAUSE_UI: break; |
|
|
case EXTRUSION_UI: lv_draw_extrusion(); break; |
|
|
case EXTRUSION_UI: lv_draw_extrusion(); break; |
|
|
case PRE_HEAT_UI: lv_draw_preHeat(); break; |
|
|
case PREHEAT_UI: lv_draw_preHeat(); break; |
|
|
case CHANGE_SPEED_UI: lv_draw_change_speed(); break; |
|
|
case CHANGE_SPEED_UI: lv_draw_change_speed(); break; |
|
|
case FAN_UI: lv_draw_fan(); break; |
|
|
case FAN_UI: lv_draw_fan(); break; |
|
|
case SET_UI: lv_draw_set(); break; |
|
|
case SET_UI: lv_draw_set(); break; |
|
@ -1037,15 +1036,14 @@ void draw_return_ui() { |
|
|
case MACHINE_SETTINGS_UI: lv_draw_machine_settings(); break; |
|
|
case MACHINE_SETTINGS_UI: lv_draw_machine_settings(); break; |
|
|
case TEMPERATURE_SETTINGS_UI: break; |
|
|
case TEMPERATURE_SETTINGS_UI: break; |
|
|
case MOTOR_SETTINGS_UI: lv_draw_motor_settings(); break; |
|
|
case MOTOR_SETTINGS_UI: lv_draw_motor_settings(); break; |
|
|
case MACHINETYPE_UI: break; |
|
|
case MACHINE_TYPE_UI: break; |
|
|
case STROKE_UI: break; |
|
|
case STROKE_UI: break; |
|
|
case HOME_DIR_UI: break; |
|
|
case HOME_DIR_UI: break; |
|
|
case ENDSTOP_TYPE_UI: break; |
|
|
case ENDSTOP_TYPE_UI: break; |
|
|
case FILAMENT_SETTINGS_UI: lv_draw_filament_settings(); break; |
|
|
case FILAMENT_SETTINGS_UI: lv_draw_filament_settings(); break; |
|
|
case LEVELING_SETTIGNS_UI: break; |
|
|
|
|
|
case LEVELING_PARA_UI: lv_draw_level_settings(); break; |
|
|
case LEVELING_PARA_UI: lv_draw_level_settings(); break; |
|
|
case DELTA_LEVELING_PARA_UI: break; |
|
|
case DELTA_LEVELING_PARA_UI: break; |
|
|
case MANUAL_LEVELING_POSIGION_UI: lv_draw_tramming_pos_settings(); break; |
|
|
case MANUAL_LEVELING_POSITION_UI: lv_draw_tramming_pos_settings(); break; |
|
|
case MAXFEEDRATE_UI: lv_draw_max_feedrate_settings(); break; |
|
|
case MAXFEEDRATE_UI: lv_draw_max_feedrate_settings(); break; |
|
|
case STEPS_UI: lv_draw_step_settings(); break; |
|
|
case STEPS_UI: lv_draw_step_settings(); break; |
|
|
case ACCELERATION_UI: lv_draw_acceleration_settings(); break; |
|
|
case ACCELERATION_UI: lv_draw_acceleration_settings(); break; |
|
@ -1061,7 +1059,7 @@ void draw_return_ui() { |
|
|
case ENABLE_INVERT_UI: break; |
|
|
case ENABLE_INVERT_UI: break; |
|
|
case NUMBER_KEY_UI: lv_draw_number_key(); break; |
|
|
case NUMBER_KEY_UI: lv_draw_number_key(); break; |
|
|
case DIALOG_UI: break; |
|
|
case DIALOG_UI: break; |
|
|
case BABY_STEP_UI: lv_draw_baby_stepping(); break; |
|
|
case BABYSTEP_UI: lv_draw_baby_stepping(); break; |
|
|
case PAUSE_POS_UI: lv_draw_pause_position(); break; |
|
|
case PAUSE_POS_UI: lv_draw_pause_position(); break; |
|
|
#if HAS_TRINAMIC_CONFIG |
|
|
#if HAS_TRINAMIC_CONFIG |
|
|
case TMC_CURRENT_UI: lv_draw_tmc_current_settings(); break; |
|
|
case TMC_CURRENT_UI: lv_draw_tmc_current_settings(); break; |
|
|