Pārlūkot izejas kodu

Fix #3788

fSetMmuMode needs to be called
in order for the commands to work:
M862.2 Q
M862.3 Q
Guðni Már Gilbert 1 gadu atpakaļ
vecāks
revīzija
074b62361f
1 mainītis faili ar 2 papildinājumiem un 2 dzēšanām
  1. 2 2
      Firmware/Marlin_main.cpp

+ 2 - 2
Firmware/Marlin_main.cpp

@@ -8050,21 +8050,21 @@ Sigma_Exit:
                          SERIAL_PROTOCOLLN((float)eeprom_read_word((uint16_t*)EEPROM_NOZZLE_DIAMETER_uM)/1000.0);
                     break;
                case ClPrintChecking::_Model:      // ~ .2
+                    fSetMmuMode(MMU2::mmu2.Enabled());
                     if(code_seen('P'))
                          {
                          uint16_t nPrinterModel;
                          nPrinterModel=(uint16_t)code_value_long();
                          // based on current state of MMU (active/stopped/connecting) perform a runtime update of the printer type
-                         fSetMmuMode(MMU2::mmu2.Enabled());
                          printer_model_check(nPrinterModel);
                          }
                     else if(code_seen('Q'))
                          SERIAL_PROTOCOLLN(nPrinterType);
                     break;
                case ClPrintChecking::_Smodel:     // ~ .3
+                    fSetMmuMode(MMU2::mmu2.Enabled());
                     if(code_seen('P'))
                     {
-                        fSetMmuMode(MMU2::mmu2.Enabled());
                         printer_smodel_check(strchr_pointer);
                     }
                     else if(code_seen('Q'))