add resetPID function

This commit is contained in:
PavelSindler 2019-04-08 17:57:07 +02:00
parent 36c70aacce
commit 858a44e915
1 changed files with 5 additions and 2 deletions

View File

@ -128,12 +128,15 @@ FORCE_INLINE float degTargetBed() {
FORCE_INLINE void setTargetHotend(const float &celsius, uint8_t extruder) {
target_temperature[extruder] = celsius;
resetPID[extruder];
resetPID(extruder);
};
static inline void setTargetHotendSafe(const float &celsius, uint8_t extruder)
{
if (extruder<EXTRUDERS) target_temperature[extruder] = celsius;
if (extruder<EXTRUDERS) {
target_temperature[extruder] = celsius;
resetPID(extruder);
}
}
static inline void setAllTargetHotends(const float &celsius)