0
0
Fork 0
mirror of https://github.com/MarlinFirmware/Marlin.git synced 2025-06-29 18:30:36 +00:00

re-enabled heaterpower as storage for the current storage of the heater PWM duty cycle.

the M301 now returns the current PID settings of the machine.
M105 returns heating pwm duty cylce as "@:"
This commit is contained in:
Bernhard Kubicek 2011-11-12 20:37:28 +01:00
parent 36958ee305
commit e9adfa27b5
2 changed files with 30 additions and 23 deletions

View file

@ -156,6 +156,7 @@ void manage_heater()
pTerm+=Kc*current_block->speed_e; //additional heating if extrusion speed is high
#endif
pid_output = constrain(pTerm + iTerm - dTerm, 0, PID_MAX);
HeaterPower=pid_output;
}
#endif //PID_OPENLOOP
#ifdef PID_DEBUG