Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: C027_Support C12832 LM75B MMA7660 MbedSmartRest mbed-rtos mbed
Fork of MbedSmartRestMain by
Diff: io.cpp
- Revision:
- 18:6bce406b3da2
- Parent:
- 17:877a9a3148a4
- Child:
- 19:7bee744fe527
diff -r 877a9a3148a4 -r 6bce406b3da2 io.cpp
--- a/io.cpp Tue Feb 18 15:51:57 2014 +0000
+++ b/io.cpp Tue Feb 18 15:57:38 2014 +0000
@@ -23,6 +23,11 @@
timer->start(50);
tempFound = tempSensor.open();
accFound = accSensor.testConnection();
+
+ if (!tempFound)
+ puts("Temperature sensor not found.");
+ if (!accFound)
+ puts("Accelerometer not found.");
}
float temperature()
