M600: show progress bar during first filament load
This commit is contained in:
parent
0f02f9a4e3
commit
f4c1e7924f
|
|
@ -8965,7 +8965,6 @@ static void print_time_remaining_init()
|
||||||
|
|
||||||
void load_filament_final_feed()
|
void load_filament_final_feed()
|
||||||
{
|
{
|
||||||
st_synchronize();
|
|
||||||
current_position[E_AXIS]+= FILAMENTCHANGE_FINALFEED;
|
current_position[E_AXIS]+= FILAMENTCHANGE_FINALFEED;
|
||||||
plan_buffer_line(current_position[X_AXIS], current_position[Y_AXIS], current_position[Z_AXIS], current_position[E_AXIS], 200/60, active_extruder);
|
plan_buffer_line(current_position[X_AXIS], current_position[Y_AXIS], current_position[Z_AXIS], current_position[E_AXIS], 200/60, active_extruder);
|
||||||
}
|
}
|
||||||
|
|
@ -8990,6 +8989,7 @@ void M600_check_state()
|
||||||
|
|
||||||
// Filament loaded properly but color is not clear
|
// Filament loaded properly but color is not clear
|
||||||
case 3:
|
case 3:
|
||||||
|
st_synchronize();
|
||||||
load_filament_final_feed();
|
load_filament_final_feed();
|
||||||
lcd_loading_color();
|
lcd_loading_color();
|
||||||
st_synchronize();
|
st_synchronize();
|
||||||
|
|
|
||||||
|
|
@ -2254,21 +2254,16 @@ void lcd_change_success() {
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static void lcd_loading_progress_bar() {
|
static void lcd_loading_progress_bar(uint16_t loading_time_ms) {
|
||||||
for (int i = 0; i < 20; i++) {
|
|
||||||
|
|
||||||
lcd_set_cursor(i, 3);
|
for (int i = 0; i < 20; i++) {
|
||||||
lcd_print(".");
|
lcd_set_cursor(i, 3);
|
||||||
//0.375 s delay:
|
lcd_print(".");
|
||||||
for (int j = 0; j < 5 ; j++) {
|
//loading_time_ms/20 delay
|
||||||
manage_heater();
|
for (int j = 0; j < 5; j++) {
|
||||||
manage_inactivity(true);
|
delay_keep_alive(loading_time_ms / 100);
|
||||||
delay(75);
|
}
|
||||||
|
}
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -2282,7 +2277,7 @@ void lcd_loading_color() {
|
||||||
lcd_puts_P(_i("Loading color"));////MSG_LOADING_COLOR c=0 r=0
|
lcd_puts_P(_i("Loading color"));////MSG_LOADING_COLOR c=0 r=0
|
||||||
lcd_set_cursor(0, 2);
|
lcd_set_cursor(0, 2);
|
||||||
lcd_puts_P(_T(MSG_PLEASE_WAIT));
|
lcd_puts_P(_T(MSG_PLEASE_WAIT));
|
||||||
lcd_loading_progress_bar();
|
lcd_loading_progress_bar(7500); //slow sequence: 7.5 seconds
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -2311,7 +2306,7 @@ void lcd_loading_filament() {
|
||||||
|
|
||||||
}
|
}
|
||||||
#else //SNMM
|
#else //SNMM
|
||||||
lcd_loading_progress_bar();
|
lcd_loading_progress_bar(11000); //fast + slow sequence: 7.5 seconds
|
||||||
#endif //SNMM
|
#endif //SNMM
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue