Merge pull request #2059 from mkbel/fix_wizard_lay1_cal

Fix wizard lay1 cal
This commit is contained in:
DRracer 2019-07-31 16:48:04 +02:00 committed by GitHub
commit d2ff98c643
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 1 deletions

View File

@ -978,7 +978,7 @@ void extr_adj(uint8_t extruder) //loading filament for SNMM
{
#ifndef SNMM
MmuCmd cmd = MmuCmd::L0 + extruder;
if (cmd > MmuCmd::L4)
if (extruder > (MmuCmd::L4 - MmuCmd::L0))
{
printf_P(PSTR("Filament out of range %d \n"),extruder);
return;

View File

@ -4798,6 +4798,7 @@ static void lcd_wizard_load()
if (mmu_enabled)
{
lcd_show_fullscreen_message_and_wait_P(_i("Please insert PLA filament to the first tube of MMU, then press the knob to load it."));////c=20 r=8
tmp_extruder = 0;
}
else
{