Browse Source

🐛 Fix M149 (#24430)

Moonglow 2 years ago
parent
commit
c7923c0397
No account linked to committer's email address
1 changed files with 3 additions and 3 deletions
  1. 3
    3
      Marlin/src/gcode/units/M149.cpp

+ 3
- 3
Marlin/src/gcode/units/M149.cpp View File

30
  * M149: Set temperature units
30
  * M149: Set temperature units
31
  */
31
  */
32
 void GcodeSuite::M149() {
32
 void GcodeSuite::M149() {
33
-       if (parser.seenval('C')) parser.set_input_temp_units(TEMPUNIT_C);
34
-  else if (parser.seenval('K')) parser.set_input_temp_units(TEMPUNIT_K);
35
-  else if (parser.seenval('F')) parser.set_input_temp_units(TEMPUNIT_F);
33
+       if (parser.seen('C')) parser.set_input_temp_units(TEMPUNIT_C);
34
+  else if (parser.seen('K')) parser.set_input_temp_units(TEMPUNIT_K);
35
+  else if (parser.seen('F')) parser.set_input_temp_units(TEMPUNIT_F);
36
   else M149_report();
36
   else M149_report();
37
 }
37
 }
38
 
38
 

Loading…
Cancel
Save