Fix and improve EEPROM storage (#12054)
* Clean up Temperature PID * Improve EEPROM read/write/validate * Group `SINGLENOZZLE` saved settings * Group planner saved settings * Group filament change saved settings * Group skew saved settings * Group `FWRETRACT` saved settings
This commit is contained in:
@@ -28,14 +28,14 @@
|
||||
#include "../../module/temperature.h"
|
||||
|
||||
void GcodeSuite::M304() {
|
||||
if (parser.seen('P')) thermalManager.bedKp = parser.value_float();
|
||||
if (parser.seen('I')) thermalManager.bedKi = scalePID_i(parser.value_float());
|
||||
if (parser.seen('D')) thermalManager.bedKd = scalePID_d(parser.value_float());
|
||||
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());
|
||||
|
||||
SERIAL_ECHO_START();
|
||||
SERIAL_ECHOPAIR(" p:", thermalManager.bedKp);
|
||||
SERIAL_ECHOPAIR(" i:", unscalePID_i(thermalManager.bedKi));
|
||||
SERIAL_ECHOLNPAIR(" d:", unscalePID_d(thermalManager.bedKd));
|
||||
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));
|
||||
}
|
||||
|
||||
#endif // PIDTEMPBED
|
||||
|
||||
Reference in New Issue
Block a user