fixed compile error in ultralcd.cpp when PIDTEMP undefined

master
lajos 12 years ago
parent 73569d891f
commit 7d03c52511

@ -1252,16 +1252,20 @@ char *ftostr52(const float &x)
// grab the pid i value out of the temp variable; scale it; then update the PID driver // grab the pid i value out of the temp variable; scale it; then update the PID driver
void copy_and_scalePID_i() void copy_and_scalePID_i()
{ {
#ifdef PIDTEMP
Ki = scalePID_i(raw_Ki); Ki = scalePID_i(raw_Ki);
updatePID(); updatePID();
#endif
} }
// Callback for after editing PID d value // Callback for after editing PID d value
// grab the pid d value out of the temp variable; scale it; then update the PID driver // grab the pid d value out of the temp variable; scale it; then update the PID driver
void copy_and_scalePID_d() void copy_and_scalePID_d()
{ {
#ifdef PIDTEMP
Kd = scalePID_d(raw_Kd); Kd = scalePID_d(raw_Kd);
updatePID(); updatePID();
#endif
} }
#endif //ULTRA_LCD #endif //ULTRA_LCD

Loading…
Cancel
Save