PFW-1439 Remove parameters from execute_load_to_nozzle_sequence

This commit is contained in:
Guðni Már Gilbert 2022-12-18 14:24:16 +00:00
parent 6ee5f08505
commit c72ae8a2f3
2 changed files with 5 additions and 5 deletions

View File

@ -355,7 +355,7 @@ bool MMU2::tool_change(char code, uint8_t slot) {
case 'c': {
waitForHotendTargetTemp(100, []{});
execute_load_to_nozzle_sequence((const E_Step *)load_to_nozzle_sequence, sizeof(load_to_nozzle_sequence) / sizeof (load_to_nozzle_sequence[0]));
execute_load_to_nozzle_sequence();
} break;
}
@ -506,7 +506,7 @@ bool MMU2::load_filament_to_nozzle(uint8_t slot) {
ToolChangeCommon(slot);
// Finish loading to the nozzle with finely tuned steps.
execute_load_to_nozzle_sequence((const E_Step *)load_to_nozzle_sequence, sizeof(load_to_nozzle_sequence) / sizeof (load_to_nozzle_sequence[0]));
execute_load_to_nozzle_sequence();
Sound_MakeSound(e_SOUND_TYPE_StandardConfirm);
}
lcd_update_enable(true);
@ -837,11 +837,11 @@ void MMU2::execute_extruder_sequence(const E_Step *sequence, uint8_t steps) {
}
}
void MMU2::execute_load_to_nozzle_sequence(const E_Step *sequence, uint8_t steps) {
void MMU2::execute_load_to_nozzle_sequence() {
st_synchronize();
// Compensate for configurable Extra Loading Distance
current_position[E_AXIS] -= logic.ExtraLoadDistance();
execute_extruder_sequence(sequence, steps);
execute_extruder_sequence((const E_Step *)load_to_nozzle_sequence, sizeof(load_to_nozzle_sequence) / sizeof (load_to_nozzle_sequence[0]));
}
void MMU2::ReportError(ErrorCode ec, ErrorSource res) {

View File

@ -239,7 +239,7 @@ private:
void filament_ramming();
void execute_extruder_sequence(const E_Step *sequence, uint8_t steps);
void execute_load_to_nozzle_sequence(const E_Step *sequence, uint8_t steps);
void execute_load_to_nozzle_sequence();
/// Reports an error into attached ExtUIs
/// @param ec error code, see ErrorCode