Skip to content

Commit

Permalink
MMU2 cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
thinkyhead committed Jun 3, 2023
1 parent 25a3134 commit 369448f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
7 changes: 4 additions & 3 deletions Marlin/src/feature/mmu/mmu2.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -892,8 +892,8 @@ void MMU2::filament_runout() {
}

bool MMU2::can_load() {
static const E_Step can_load_sequence[] PROGMEM = { MMU2_CAN_LOAD_SEQUENCE },
can_load_increment_sequence[] PROGMEM = { MMU2_CAN_LOAD_INCREMENT_SEQUENCE };
static constexpr E_Step can_load_sequence[] PROGMEM = { MMU2_CAN_LOAD_SEQUENCE },
can_load_increment_sequence[] PROGMEM = { MMU2_CAN_LOAD_INCREMENT_SEQUENCE };

execute_extruder_sequence(can_load_sequence, COUNT(can_load_sequence));

Expand Down Expand Up @@ -1042,7 +1042,8 @@ void MMU2::load_to_nozzle_sequence() {
execute_extruder_sequence(sequence, COUNT(sequence));
}

void MMU2::execute_extruder_sequence(const E_Step * sequence, int steps) {
void MMU2::execute_extruder_sequence(const E_Step * const sequence, const uint8_t steps) {

planner.synchronize();

const E_Step *step = sequence;
Expand Down
2 changes: 1 addition & 1 deletion Marlin/src/feature/mmu/mmu2.h
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ class MMU2 {
static bool get_response();
static void manage_response(const bool move_axes, const bool turn_off_nozzle);

static void execute_extruder_sequence(const E_Step * sequence, int steps);
static void execute_extruder_sequence(const E_Step * const sequence, const uint8_t steps);
static void ramming_sequence();
static void load_to_nozzle_sequence();

Expand Down

0 comments on commit 369448f

Please sign in to comment.