Heater for threaded program

Dependents:   LEX_Threaded_Programming

Revision:
13:8629d78fd93b
Parent:
11:785a0329f802
--- a/Heater.h	Tue Jul 23 08:04:51 2019 +0000
+++ b/Heater.h	Tue Jul 23 10:06:17 2019 +0000
@@ -24,7 +24,7 @@
                  * @param drive, the motor drive
                  * @param R_ref, the target value for R
                  */
-        Heater(int i_port, int v_port, DigitalOut drive, float corr_grad, float corr_int, float R_ref = 1);
+        Heater(int i_port, int v_port, PwmOut drive, float corr_grad, float corr_int, float R_ref = 1);
         
         //Public member functions
 
@@ -64,7 +64,7 @@
         
         int i_port;
         int v_port;
-        DigitalOut drive;
+        PwmOut drive;
         
         //Heater correlations give temperature for a given resistance (assume linear relationship)
         float corr_grad;