|
@@ -647,6 +647,20 @@ void manage_heater()
|
647
|
647
|
#else
|
648
|
648
|
pid_output = constrain(target_temperature_bed, 0, MAX_BED_POWER);
|
649
|
649
|
#endif //PID_OPENLOOP
|
|
650
|
+ #ifdef PID_BED_DEBUG
|
|
651
|
+ SERIAL_ECHO_START;
|
|
652
|
+ SERIAL_ECHO(" PID_BED_DEBUG ");
|
|
653
|
+ SERIAL_ECHO(": Input ");
|
|
654
|
+ SERIAL_ECHO(pid_input);
|
|
655
|
+ SERIAL_ECHO(" Output ");
|
|
656
|
+ SERIAL_ECHO(pid_output);
|
|
657
|
+ SERIAL_ECHO(" pTerm ");
|
|
658
|
+ SERIAL_ECHO(pTerm_bed);
|
|
659
|
+ SERIAL_ECHO(" iTerm ");
|
|
660
|
+ SERIAL_ECHO(iTerm_bed);
|
|
661
|
+ SERIAL_ECHO(" dTerm ");
|
|
662
|
+ SERIAL_ECHOLN(dTerm_bed);
|
|
663
|
+ #endif //PID_BED_DEBUG
|
650
|
664
|
|
651
|
665
|
if((current_temperature_bed > BED_MINTEMP) && (current_temperature_bed < BED_MAXTEMP))
|
652
|
666
|
{
|