Skip to content

Commit b112dc2

Browse files
moonglowLCh-77
authored andcommitted
🐛 Fix M149 (MarlinFirmware#24430)
1 parent 77c5bac commit b112dc2

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Marlin/src/gcode/units/M149.cpp

+3-3
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,9 @@
3030
* M149: Set temperature units
3131
*/
3232
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);
3636
else M149_report();
3737
}
3838

0 commit comments

Comments
 (0)