Heater for threaded program

Dependents:   LEX_Threaded_Programming_V3

Revision:
38:3a2778f1f90a
Parent:
37:688dad0e1b76
Child:
39:5dffedda7a0d
diff -r 688dad0e1b76 -r 3a2778f1f90a Heater.cpp
--- a/Heater.cpp	Tue Sep 24 08:38:19 2019 +0000
+++ b/Heater.cpp	Tue Sep 24 15:14:50 2019 +0000
@@ -48,7 +48,7 @@
         
     //Get error and integrated error values
     error = R_ref - R;
-    error_integrated += error * (float) thermal.control_loop_interval_ms;
+    error_integrated += error * (float) thermal.thermal_control_loop_interval_ms;
 
     //Only allow positive integrated errors and limit change in integrated error
     //to help avoid integral windup