Interfaced 9 MF51E103F3950 NTC 10k Thermistors to a Nucleo board for a science project.

Dependencies:   mbed

Revision:
4:3ed3e2aac291
Parent:
3:cea064439566
--- a/main.cpp	Tue Jan 31 18:13:04 2017 +0000
+++ b/main.cpp	Sun Oct 18 01:03:26 2020 +0000
@@ -171,18 +171,15 @@
 //            pc.printf("Temperature %d: %f *C\t", i, steinhart);
 
 // Print commas for plotting (except at end):
-            if(i == 8) {
-                pc.printf("%.4f", steinhart);
-            }
-            else if(i == 6)
+
+            if(i == 6)
                 continue;   // bad analog input (on LED)
             else {
                 pc.printf("%.4f,", steinhart);
             }
         }
-        pc.printf("%.2f, ", timer.read()/60.0f); // print time from boot in minutes
-                
-        pc.printf("\n");
+        pc.printf("%.2f\n", timer.read()/60.0f); // print time from boot in minutes
+
         wait(1);
     }
 }