G20/21 and M149 support, and code_value() refactor
This is an update of MarlinDev PR #196. G20/21: support for switching input units between millimeters and inches. M149: support for changing input temperature units. In support of these changes, code_value() and code_value_short() are replaced with an array of functions which handle converting to the proper types and/or units.
This commit is contained in:
committed by
Scott Lahteine
parent
a569e89775
commit
16212432c9
@ -1155,9 +1155,9 @@ void Planner::reset_acceleration_rates() {
|
||||
|
||||
void Planner::autotemp_M109() {
|
||||
autotemp_enabled = code_seen('F');
|
||||
if (autotemp_enabled) autotemp_factor = code_value();
|
||||
if (code_seen('S')) autotemp_min = code_value();
|
||||
if (code_seen('B')) autotemp_max = code_value();
|
||||
if (autotemp_enabled) autotemp_factor = code_value_temp_diff();
|
||||
if (code_seen('S')) autotemp_min = code_value_temp_abs();
|
||||
if (code_seen('B')) autotemp_max = code_value_temp_abs();
|
||||
}
|
||||
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user