Skip to content

Commit

Permalink
Bed PID Reset
Browse files Browse the repository at this point in the history
  • Loading branch information
thinkyhead committed Jun 28, 2023
1 parent 8c350cb commit a8f2da4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Marlin/src/lcd/e3v2/jyersui/dwin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2211,23 +2211,23 @@ void JyersDWIN::menuItemHandler(const uint8_t menu, const uint8_t item, bool dra
drawFloat(thermalManager.temp_bed.pid.p(), row, false, 100);
}
else
modifyValue(thermalManager.temp_bed.pid.Kp, 0, 5000, 100);
modifyValue(thermalManager.temp_bed.pid.Kp, 0, 5000, 100, []{ thermalManager.temp_bed.pid.reset(); });
break;
case BEDPID_KI:
if (draw) {
drawMenuItem(row, ICON_Version, F("Ki Value"));
drawFloat(thermalManager.temp_bed.pid.i(), row, false, 100);
}
else
modifyValue(thermalManager.temp_bed.pid.Ki, 0, 5000, 100);
modifyValue(thermalManager.temp_bed.pid.Ki, 0, 5000, 100, []{ thermalManager.temp_bed.pid.reset(); });
break;
case BEDPID_KD:
if (draw) {
drawMenuItem(row, ICON_Version, F("Kd Value"));
drawFloat(thermalManager.temp_bed.pid.d(), row, false, 100);
}
else
modifyValue(thermalManager.temp_bed.pid.Kd, 0, 5000, 100);
modifyValue(thermalManager.temp_bed.pid.Kd, 0, 5000, 100, []{ thermalManager.temp_bed.pid.reset(); });
break;
}
break;
Expand Down

0 comments on commit a8f2da4

Please sign in to comment.