M141 Heated Chamber, Temperature rework (#12201)
This commit is contained in:
@ -28,14 +28,14 @@
|
||||
#include "../../module/temperature.h"
|
||||
|
||||
void GcodeSuite::M304() {
|
||||
if (parser.seen('P')) thermalManager.bed_pid.Kp = parser.value_float();
|
||||
if (parser.seen('I')) thermalManager.bed_pid.Ki = scalePID_i(parser.value_float());
|
||||
if (parser.seen('D')) thermalManager.bed_pid.Kd = scalePID_d(parser.value_float());
|
||||
if (parser.seen('P')) thermalManager.temp_bed.pid.Kp = parser.value_float();
|
||||
if (parser.seen('I')) thermalManager.temp_bed.pid.Ki = scalePID_i(parser.value_float());
|
||||
if (parser.seen('D')) thermalManager.temp_bed.pid.Kd = scalePID_d(parser.value_float());
|
||||
|
||||
SERIAL_ECHO_START();
|
||||
SERIAL_ECHOPAIR(" p:", thermalManager.bed_pid.Kp);
|
||||
SERIAL_ECHOPAIR(" i:", unscalePID_i(thermalManager.bed_pid.Ki));
|
||||
SERIAL_ECHOLNPAIR(" d:", unscalePID_d(thermalManager.bed_pid.Kd));
|
||||
SERIAL_ECHOPAIR(" p:", thermalManager.temp_bed.pid.Kp);
|
||||
SERIAL_ECHOPAIR(" i:", unscalePID_i(thermalManager.temp_bed.pid.Ki));
|
||||
SERIAL_ECHOLNPAIR(" d:", unscalePID_d(thermalManager.temp_bed.pid.Kd));
|
||||
}
|
||||
|
||||
#endif // PIDTEMPBED
|
||||
|
Reference in New Issue
Block a user