Browse Source

Declare pid_output for PIDBEDTEMP

Scott Lahteine 9 years ago
parent
commit
cb57fc727d
1 changed files with 1 additions and 3 deletions
  1. 1
    3
      Marlin/temperature.cpp

+ 1
- 3
Marlin/temperature.cpp View File

131
   static float pid_error[EXTRUDERS];
131
   static float pid_error[EXTRUDERS];
132
   static float temp_iState_min[EXTRUDERS];
132
   static float temp_iState_min[EXTRUDERS];
133
   static float temp_iState_max[EXTRUDERS];
133
   static float temp_iState_max[EXTRUDERS];
134
-  // static float pid_input[EXTRUDERS];
135
-  // static float pid_output[EXTRUDERS];
136
   static bool pid_reset[EXTRUDERS];
134
   static bool pid_reset[EXTRUDERS];
137
 #endif //PIDTEMP
135
 #endif //PIDTEMP
138
 #ifdef PIDTEMPBED
136
 #ifdef PIDTEMPBED
710
     #endif
708
     #endif
711
 
709
 
712
     #ifdef PIDTEMPBED
710
     #ifdef PIDTEMPBED
713
-      pid_output = get_pid_output_bed();
711
+      float pid_output = get_pid_output_bed();
714
 
712
 
715
       soft_pwm_bed = current_temperature_bed > BED_MINTEMP && current_temperature_bed < BED_MAXTEMP ? (int)pid_output >> 1 : 0;
713
       soft_pwm_bed = current_temperature_bed > BED_MINTEMP && current_temperature_bed < BED_MAXTEMP ? (int)pid_output >> 1 : 0;
716
 
714
 

Loading…
Cancel
Save