0
0
Fork 0
mirror of https://github.com/MarlinFirmware/Marlin.git synced 2025-01-22 17:52:57 +00:00

🎨 MMU2 const types

This commit is contained in:
Scott Lahteine 2022-05-26 18:21:30 -05:00
parent 0de4a70203
commit 829212d76a
2 changed files with 5 additions and 4 deletions

View file

@ -891,7 +891,7 @@ void MMU2::filament_runout() {
}
bool MMU2::can_load() {
static const E_Step can_load_sequence[] PROGMEM = { MMU2_CAN_LOAD_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));
@ -1041,7 +1041,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;

View file

@ -70,7 +70,7 @@ private:
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();