Skip to content

Commit

Permalink
🐛 Fix M149 (MarlinFirmware#24430)
Browse files Browse the repository at this point in the history
  • Loading branch information
moonglow authored and imp67 committed Sep 4, 2022
1 parent e012e76 commit c1e137f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Marlin/src/gcode/units/M149.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,9 @@
* M149: Set temperature units
*/
void GcodeSuite::M149() {
if (parser.seenval('C')) parser.set_input_temp_units(TEMPUNIT_C);
else if (parser.seenval('K')) parser.set_input_temp_units(TEMPUNIT_K);
else if (parser.seenval('F')) parser.set_input_temp_units(TEMPUNIT_F);
if (parser.seen('C')) parser.set_input_temp_units(TEMPUNIT_C);
else if (parser.seen('K')) parser.set_input_temp_units(TEMPUNIT_K);
else if (parser.seen('F')) parser.set_input_temp_units(TEMPUNIT_F);
else M149_report();
}

Expand Down

0 comments on commit c1e137f

Please sign in to comment.