Browse Source

Exclude M310 if TEMP_MODEL is not enabled

Yuri D'Elia 2 years ago
parent
commit
48c7c9d464
1 changed files with 2 additions and 0 deletions
  1. 2 0
      Firmware/Marlin_main.cpp

+ 2 - 0
Firmware/Marlin_main.cpp

@@ -7773,6 +7773,7 @@ Sigma_Exit:
     }
     break;
 
+#ifdef TEMP_MODEL
     /*!
     ### M310 - Temperature model
     #### Usage
@@ -7828,6 +7829,7 @@ Sigma_Exit:
         if(A >= 0) temp_model_autotune(A);
     }
     break;
+#endif
     
     /*!
 	### M400 - Wait for all moves to finish <a href="https://reprap.org/wiki/G-code#M400:_Wait_for_current_moves_to_finish">M400: Wait for current moves to finish</a>