Browse Source

🩹 Fix PID helper functions

Scott Lahteine 3 years ago
parent
commit
f7cb1ce3f4
1 changed files with 2 additions and 2 deletions
  1. 2
    2
      Marlin/src/lcd/menu/menu_advanced.cpp

+ 2
- 2
Marlin/src/lcd/menu/menu_advanced.cpp View File

210
 
210
 
211
   // Helpers for editing PID Ki & Kd values
211
   // Helpers for editing PID Ki & Kd values
212
   // grab the PID value out of the temp variable; scale it; then update the PID driver
212
   // 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) {
214
     switch (e) {
214
     switch (e) {
215
       #if ENABLED(PIDTEMPBED)
215
       #if ENABLED(PIDTEMPBED)
216
         case H_BED: thermalManager.temp_bed.pid.Ki = scalePID_i(raw_Ki); break;
216
         case H_BED: thermalManager.temp_bed.pid.Ki = scalePID_i(raw_Ki); break;
226
         break;
226
         break;
227
     }
227
     }
228
   }
228
   }
229
-  void copy_and_scalePID_d(const uint8_t e) {
229
+  void copy_and_scalePID_d(const int8_t e) {
230
     switch (e) {
230
     switch (e) {
231
       #if ENABLED(PIDTEMPBED)
231
       #if ENABLED(PIDTEMPBED)
232
         case H_BED: thermalManager.temp_bed.pid.Kd = scalePID_d(raw_Kd); break;
232
         case H_BED: thermalManager.temp_bed.pid.Kd = scalePID_d(raw_Kd); break;

Loading…
Cancel
Save