0
0
Fork 0
mirror of https://github.com/MarlinFirmware/Marlin.git synced 2025-02-17 14:50:58 +00:00

🩹 Fix PID helper functions

This commit is contained in:
Scott Lahteine 2022-04-10 03:17:53 -05:00
parent 577831bf1a
commit f7cb1ce3f4

View file

@ -210,7 +210,7 @@ void menu_backlash();
// Helpers for editing PID Ki & Kd values
// grab the PID value out of the temp variable; scale it; then update the PID driver
void copy_and_scalePID_i(const uint8_t e) {
void copy_and_scalePID_i(const int8_t e) {
switch (e) {
#if ENABLED(PIDTEMPBED)
case H_BED: thermalManager.temp_bed.pid.Ki = scalePID_i(raw_Ki); break;
@ -226,7 +226,7 @@ void menu_backlash();
break;
}
}
void copy_and_scalePID_d(const uint8_t e) {
void copy_and_scalePID_d(const int8_t e) {
switch (e) {
#if ENABLED(PIDTEMPBED)
case H_BED: thermalManager.temp_bed.pid.Kd = scalePID_d(raw_Kd); break;