mirror of
https://github.com/MarlinFirmware/Marlin.git
synced 2024-11-23 02:35:31 +00:00
🐛 Fix M149 (#24430)
This commit is contained in:
parent
0d04aa960f
commit
b3018da60c
@ -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();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user