setTargetHotendSafe change

This commit is contained in:
PavelSindler 2019-04-08 11:55:40 +02:00
parent ad86362fb3
commit efdd3bc998
1 changed files with 1 additions and 4 deletions

View File

@ -133,10 +133,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];
}
if (extruder<EXTRUDERS) target_temperature[extruder] = celsius;
}
static inline void setAllTargetHotends(const float &celsius)