mirror of
https://github.com/MarlinFirmware/Marlin.git
synced 2025-07-16 03:07:47 -06:00
🩹 Fix PID helper functions
This commit is contained in:
parent
577831bf1a
commit
f7cb1ce3f4
1 changed files with 2 additions and 2 deletions
|
@ -210,7 +210,7 @@ void menu_backlash();
|
||||||
|
|
||||||
// Helpers for editing PID Ki & Kd values
|
// Helpers for editing PID Ki & Kd values
|
||||||
// grab the PID value out of the temp variable; scale it; then update the PID driver
|
// 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) {
|
switch (e) {
|
||||||
#if ENABLED(PIDTEMPBED)
|
#if ENABLED(PIDTEMPBED)
|
||||||
case H_BED: thermalManager.temp_bed.pid.Ki = scalePID_i(raw_Ki); break;
|
case H_BED: thermalManager.temp_bed.pid.Ki = scalePID_i(raw_Ki); break;
|
||||||
|
@ -226,7 +226,7 @@ void menu_backlash();
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
void copy_and_scalePID_d(const uint8_t e) {
|
void copy_and_scalePID_d(const int8_t e) {
|
||||||
switch (e) {
|
switch (e) {
|
||||||
#if ENABLED(PIDTEMPBED)
|
#if ENABLED(PIDTEMPBED)
|
||||||
case H_BED: thermalManager.temp_bed.pid.Kd = scalePID_d(raw_Kd); break;
|
case H_BED: thermalManager.temp_bed.pid.Kd = scalePID_d(raw_Kd); break;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue