Change formatting.
This commit is contained in:
parent
b2255c8be9
commit
f161d3ade4
|
|
@ -9090,17 +9090,19 @@ void load_filament_final_feed()
|
||||||
plan_buffer_line(current_position[X_AXIS], current_position[Y_AXIS], current_position[Z_AXIS], current_position[E_AXIS], FILAMENTCHANGE_EFEED_FINAL, active_extruder);
|
plan_buffer_line(current_position[X_AXIS], current_position[Y_AXIS], current_position[Z_AXIS], current_position[E_AXIS], FILAMENTCHANGE_EFEED_FINAL, active_extruder);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//! @brief Wait for user to check the state
|
||||||
//! @par nozzle_temp nozzle temperature to load filament
|
//! @par nozzle_temp nozzle temperature to load filament
|
||||||
void M600_check_state(float nozzle_temp)
|
void M600_check_state(float nozzle_temp)
|
||||||
{
|
{
|
||||||
//Wait for user to check the state
|
|
||||||
lcd_change_fil_state = 0;
|
lcd_change_fil_state = 0;
|
||||||
while (lcd_change_fil_state != 1){
|
while (lcd_change_fil_state != 1)
|
||||||
|
{
|
||||||
lcd_change_fil_state = 0;
|
lcd_change_fil_state = 0;
|
||||||
KEEPALIVE_STATE(PAUSED_FOR_USER);
|
KEEPALIVE_STATE(PAUSED_FOR_USER);
|
||||||
lcd_alright();
|
lcd_alright();
|
||||||
KEEPALIVE_STATE(IN_HANDLER);
|
KEEPALIVE_STATE(IN_HANDLER);
|
||||||
switch(lcd_change_fil_state){
|
switch(lcd_change_fil_state)
|
||||||
|
{
|
||||||
// Filament failed to load so load it again
|
// Filament failed to load so load it again
|
||||||
case 2:
|
case 2:
|
||||||
if (mmu_enabled)
|
if (mmu_enabled)
|
||||||
|
|
|
||||||
|
|
@ -835,13 +835,15 @@ void mmu_M600_wait_and_beep() {
|
||||||
void mmu_M600_load_filament(bool automatic, float nozzle_temp)
|
void mmu_M600_load_filament(bool automatic, float nozzle_temp)
|
||||||
{
|
{
|
||||||
tmp_extruder = mmu_extruder;
|
tmp_extruder = mmu_extruder;
|
||||||
if (!automatic) {
|
if (!automatic)
|
||||||
|
{
|
||||||
#ifdef MMU_M600_SWITCH_EXTRUDER
|
#ifdef MMU_M600_SWITCH_EXTRUDER
|
||||||
bool yes = lcd_show_fullscreen_message_yes_no_and_wait_P(_i("Do you want to switch extruder?"), false);
|
bool yes = lcd_show_fullscreen_message_yes_no_and_wait_P(_i("Do you want to switch extruder?"), false);
|
||||||
if(yes) tmp_extruder = choose_extruder_menu();
|
if(yes) tmp_extruder = choose_extruder_menu();
|
||||||
#endif //MMU_M600_SWITCH_EXTRUDER
|
#endif //MMU_M600_SWITCH_EXTRUDER
|
||||||
}
|
}
|
||||||
else {
|
else
|
||||||
|
{
|
||||||
tmp_extruder = ad_getAlternative(tmp_extruder);
|
tmp_extruder = ad_getAlternative(tmp_extruder);
|
||||||
}
|
}
|
||||||
lcd_update_enable(false);
|
lcd_update_enable(false);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue