Add typedef celsius_t (#21374)
This commit is contained in:
@ -197,9 +197,9 @@ float Planner::steps_to_mm[XYZE_N]; // (mm) Millimeters per step
|
||||
skew_factor_t Planner::skew_factor; // Initialized by settings.load()
|
||||
|
||||
#if ENABLED(AUTOTEMP)
|
||||
float Planner::autotemp_max = 250,
|
||||
Planner::autotemp_min = 210,
|
||||
Planner::autotemp_factor = 0.1f;
|
||||
celsius_t Planner::autotemp_max = 250,
|
||||
Planner::autotemp_min = 210;
|
||||
float Planner::autotemp_factor = 0.1f;
|
||||
bool Planner::autotemp_enabled = false;
|
||||
#endif
|
||||
|
||||
@ -1376,7 +1376,7 @@ void Planner::check_axes_activity() {
|
||||
|
||||
#if ENABLED(AUTOTEMP_PROPORTIONAL)
|
||||
void Planner::_autotemp_update_from_hotend() {
|
||||
const int16_t target = thermalManager.degTargetHotend(active_extruder);
|
||||
const celsius_t target = thermalManager.degTargetHotend(active_extruder);
|
||||
autotemp_min = target + AUTOTEMP_MIN_P;
|
||||
autotemp_max = target + AUTOTEMP_MAX_P;
|
||||
}
|
||||
|
Reference in New Issue
Block a user