For Hepta-Sat Lite

Revision:
2:de2e2a625a3b
Parent:
1:a23c2cd65379
Child:
3:96c3dd85be15
--- a/HeptaTemp.cpp	Fri Jul 21 10:36:09 2017 +0000
+++ b/HeptaTemp.cpp	Mon Sep 04 16:28:00 2017 +0000
@@ -27,17 +27,14 @@
 //Gain&Offset
     float gain = -R5*I/R4;
     float off = Vref+I*R3;
-    //printf("%f\r\n",gain);
-    //printf("%f\r\n",off);
+
 //temperature coefficient
     ce = 0.003851;
     float volt = (_pin.read())*3.3*(R_1 + R_2)/R_1;
     float Rth = (volt-off)/gain+R3;
     *temp = (Rth-Pt)/(ce*Pt);
-    /* printf("%f\r\n",volt);
-     printf("%f\r\n",Rth);
-     printf("%f\r\n",*temp);*/
-    // delay some time before reading again
+    
+// delay some time before reading again
     wait(0.5);
 
 }