mirror of
https://github.com/MarlinFirmware/Marlin.git
synced 2024-11-27 13:56:24 +00:00
🐛 Fix M149 (#24430)
This commit is contained in:
parent
afbdcc8eee
commit
23e93c51fd
@ -30,9 +30,9 @@
|
|||||||
* M149: Set temperature units
|
* M149: Set temperature units
|
||||||
*/
|
*/
|
||||||
void GcodeSuite::M149() {
|
void GcodeSuite::M149() {
|
||||||
if (parser.seenval('C')) parser.set_input_temp_units(TEMPUNIT_C);
|
if (parser.seen('C')) parser.set_input_temp_units(TEMPUNIT_C);
|
||||||
else if (parser.seenval('K')) parser.set_input_temp_units(TEMPUNIT_K);
|
else if (parser.seen('K')) parser.set_input_temp_units(TEMPUNIT_K);
|
||||||
else if (parser.seenval('F')) parser.set_input_temp_units(TEMPUNIT_F);
|
else if (parser.seen('F')) parser.set_input_temp_units(TEMPUNIT_F);
|
||||||
else M149_report();
|
else M149_report();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user