Skip to content

Commit f7cb1ce

Browse files
committed
🩹 Fix PID helper functions
1 parent 577831b commit f7cb1ce

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Marlin/src/lcd/menu/menu_advanced.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,7 @@ void menu_backlash();
210210

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

0 commit comments

Comments
 (0)