|
@@ -505,9 +505,11 @@ static void lcd_control_menu()
|
505
|
505
|
|
506
|
506
|
static void lcd_control_temperature_menu()
|
507
|
507
|
{
|
|
508
|
+#ifdef PIDTEMP
|
508
|
509
|
// set up temp variables - undo the default scaling
|
509
|
510
|
raw_Ki = unscalePID_i(Ki);
|
510
|
511
|
raw_Kd = unscalePID_d(Kd);
|
|
512
|
+#endif
|
511
|
513
|
|
512
|
514
|
START_MENU();
|
513
|
515
|
MENU_ITEM(back, MSG_CONTROL, lcd_control_menu);
|
|
@@ -1252,16 +1254,20 @@ char *ftostr52(const float &x)
|
1252
|
1254
|
// grab the pid i value out of the temp variable; scale it; then update the PID driver
|
1253
|
1255
|
void copy_and_scalePID_i()
|
1254
|
1256
|
{
|
|
1257
|
+#ifdef PIDTEMP
|
1255
|
1258
|
Ki = scalePID_i(raw_Ki);
|
1256
|
1259
|
updatePID();
|
|
1260
|
+#endif
|
1257
|
1261
|
}
|
1258
|
1262
|
|
1259
|
1263
|
// Callback for after editing PID d value
|
1260
|
1264
|
// grab the pid d value out of the temp variable; scale it; then update the PID driver
|
1261
|
1265
|
void copy_and_scalePID_d()
|
1262
|
1266
|
{
|
|
1267
|
+#ifdef PIDTEMP
|
1263
|
1268
|
Kd = scalePID_d(raw_Kd);
|
1264
|
1269
|
updatePID();
|
|
1270
|
+#endif
|
1265
|
1271
|
}
|
1266
|
1272
|
|
1267
|
1273
|
#endif //ULTRA_LCD
|