Skip to content

Commit

Permalink
🩹 Fix PID helper functions
Browse files Browse the repository at this point in the history
  • Loading branch information
thinkyhead committed Apr 10, 2022
1 parent 577831b commit f7cb1ce
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Marlin/src/lcd/menu/menu_advanced.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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;
Expand Down

0 comments on commit f7cb1ce

Please sign in to comment.