Minor fix to M701 when MMU slot is out of range
If MMU slot is outside of range, then we rather the printer not do anything. Currently it would accidentally assume the MMU is disabled. This may have undesireable results. No change in memory
This commit is contained in:
parent
26369ac540
commit
9cf1f7871e
|
|
@ -3575,8 +3575,10 @@ void gcode_M701(float fastLoadLength, uint8_t mmuSlotIndex){
|
|||
|
||||
prusa_statistics(22);
|
||||
|
||||
if (MMU2::mmu2.Enabled() && mmuSlotIndex < MMU_FILAMENT_COUNT) {
|
||||
MMU2::mmu2.load_filament_to_nozzle(mmuSlotIndex);
|
||||
if (MMU2::mmu2.Enabled()) {
|
||||
if (mmuSlotIndex < MMU_FILAMENT_COUNT) {
|
||||
MMU2::mmu2.load_filament_to_nozzle(mmuSlotIndex);
|
||||
} // else do nothing
|
||||
} else {
|
||||
custom_message_type = CustomMsg::FilamentLoading;
|
||||
lcd_setstatuspgm(_T(MSG_LOADING_FILAMENT));
|
||||
|
|
|
|||
Loading…
Reference in New Issue