mirror of
https://github.com/MarlinFirmware/Marlin.git
synced 2025-01-22 09:42:34 +00:00
🎨 MMU2 const types
This commit is contained in:
parent
0de4a70203
commit
829212d76a
2 changed files with 5 additions and 4 deletions
|
@ -891,8 +891,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));
|
||||
|
||||
|
@ -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;
|
||||
|
|
|
@ -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();
|
||||
|
||||
|
|
Loading…
Reference in a new issue