Re-enable the code that moves the extruder during PP
There is frequently plenty of power left during a PP. Take advantage of it by moving the extruder to either side of the axis to detach completely the nozzle from the print. Re-enable Z during this move to avoid losing the current step.
This commit is contained in:
parent
0702e0de6e
commit
11a0e95f60
1 changed files with 5 additions and 6 deletions
|
@ -10617,18 +10617,17 @@ void uvlo_()
|
||||||
// Increment power failure counter
|
// Increment power failure counter
|
||||||
eeprom_update_byte((uint8_t*)EEPROM_POWER_COUNT, eeprom_read_byte((uint8_t*)EEPROM_POWER_COUNT) + 1);
|
eeprom_update_byte((uint8_t*)EEPROM_POWER_COUNT, eeprom_read_byte((uint8_t*)EEPROM_POWER_COUNT) + 1);
|
||||||
eeprom_update_word((uint16_t*)EEPROM_POWER_COUNT_TOT, eeprom_read_word((uint16_t*)EEPROM_POWER_COUNT_TOT) + 1);
|
eeprom_update_word((uint16_t*)EEPROM_POWER_COUNT_TOT, eeprom_read_word((uint16_t*)EEPROM_POWER_COUNT_TOT) + 1);
|
||||||
printf_P(_N("UVLO - end %d\n"), _millis() - time_start);
|
|
||||||
|
|
||||||
#if 0
|
printf_P(_N("UVLO - end %d\n"), _millis() - time_start);
|
||||||
// Move the print head to the side of the print until all the power stored in the power supply capacitors is depleted.
|
WRITE(BEEPER,HIGH);
|
||||||
|
|
||||||
|
// All is set: with all the juice left, try to move extruder away to detach the nozzle completely from the print
|
||||||
|
enable_z();
|
||||||
current_position[X_AXIS] = (current_position[X_AXIS] < 0.5f * (X_MIN_POS + X_MAX_POS)) ? X_MIN_POS : X_MAX_POS;
|
current_position[X_AXIS] = (current_position[X_AXIS] < 0.5f * (X_MIN_POS + X_MAX_POS)) ? X_MIN_POS : X_MAX_POS;
|
||||||
plan_buffer_line_curposXYZE(500, active_extruder);
|
plan_buffer_line_curposXYZE(500, active_extruder);
|
||||||
st_synchronize();
|
st_synchronize();
|
||||||
#endif
|
|
||||||
|
|
||||||
// burn all that residual power
|
|
||||||
wdt_enable(WDTO_1S);
|
wdt_enable(WDTO_1S);
|
||||||
WRITE(BEEPER,HIGH);
|
|
||||||
while(1);
|
while(1);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue