Reduce code duplication in setTargetHotendSafe

This commit is contained in:
Yuri D'Elia 2022-05-24 19:06:27 +02:00
parent 7d82cd641e
commit ccaecc87aa
1 changed files with 1 additions and 2 deletions

View File

@ -149,8 +149,7 @@ FORCE_INLINE void setTargetHotend(const float &celsius, uint8_t extruder) {
static inline void setTargetHotendSafe(const float &celsius, uint8_t extruder)
{
if (extruder<EXTRUDERS) {
target_temperature[extruder] = celsius;
resetPID(extruder);
setTargetHotend(celsius, extruder);
}
}