Browse Source

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 year ago
parent
commit
074b62361f
1 changed files with 2 additions and 2 deletions
  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'))