Ver código fonte

Adjust spacing in gcode_M149

Scott Lahteine 8 anos atrás
pai
commit
07bfc45df8
1 arquivos alterados com 3 adições e 7 exclusões
  1. 3
    7
      Marlin/Marlin_main.cpp

+ 3
- 7
Marlin/Marlin_main.cpp Ver arquivo

5549
    * M149: Set temperature units
5549
    * M149: Set temperature units
5550
    */
5550
    */
5551
   inline void gcode_M149() {
5551
   inline void gcode_M149() {
5552
-    if (code_seen('C')) {
5552
+         if (code_seen('C')) set_input_temp_units(TEMPUNIT_C);
5553
-      set_input_temp_units(TEMPUNIT_C);
5553
+    else if (code_seen('K')) set_input_temp_units(TEMPUNIT_K);
5554
-    } else if (code_seen('K')) {
5554
+    else if (code_seen('F')) set_input_temp_units(TEMPUNIT_F);
5555
-      set_input_temp_units(TEMPUNIT_K);
5556
-    } else if (code_seen('F')) {
5557
-      set_input_temp_units(TEMPUNIT_F);
5558
-    }
5559
   }
5555
   }
5560
 #endif
5556
 #endif
5561
 
5557
 

Carregando…
Cancelar
Salvar