![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
Interfaced 9 MF51E103F3950 NTC 10k Thermistors to a Nucleo board for a science project.
Revision 4:3ed3e2aac291, committed 2020-10-18
- Comitter:
- smartsystemdesign
- Date:
- Sun Oct 18 01:03:26 2020 +0000
- Parent:
- 3:cea064439566
- Commit message:
- Removed unneeded print statements.
Changed in this revision
main.cpp | Show annotated file Show diff for this revision Revisions of this file |
diff -r cea064439566 -r 3ed3e2aac291 main.cpp --- 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); } }