Move M149 to cpp
This commit is contained in:
@ -20,11 +20,19 @@
|
||||
*
|
||||
*/
|
||||
|
||||
#include "../../inc/MarlinConfig.h"
|
||||
|
||||
#if ENABLED(TEMPERATURE_UNITS_SUPPORT)
|
||||
|
||||
#include "../gcode.h"
|
||||
|
||||
/**
|
||||
* M149: Set temperature units
|
||||
*/
|
||||
void gcode_M149() {
|
||||
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);
|
||||
}
|
||||
|
||||
#endif // TEMPERATURE_UNITS_SUPPORT
|
Reference in New Issue
Block a user