add resetPID function
This commit is contained in:
parent
36c70aacce
commit
858a44e915
|
|
@ -128,12 +128,15 @@ FORCE_INLINE float degTargetBed() {
|
||||||
|
|
||||||
FORCE_INLINE void setTargetHotend(const float &celsius, uint8_t extruder) {
|
FORCE_INLINE void setTargetHotend(const float &celsius, uint8_t extruder) {
|
||||||
target_temperature[extruder] = celsius;
|
target_temperature[extruder] = celsius;
|
||||||
resetPID[extruder];
|
resetPID(extruder);
|
||||||
};
|
};
|
||||||
|
|
||||||
static inline void setTargetHotendSafe(const float &celsius, uint8_t 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)
|
static inline void setAllTargetHotends(const float &celsius)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue