SCP1000 Library

Dependents:   SCP1000Example 0sample_SCP1000_USB SCP1000_Fastsensing

Files at this revision

API Documentation at this revision

Comitter:
yamaguch
Date:
Mon Oct 31 10:55:15 2011 +0000
Parent:
13:faf2decbd1d4
Commit message:
fixed a bug in performSelfTest()

Changed in this revision

SCP1000.cpp Show annotated file Show diff for this revision Revisions of this file
diff -r faf2decbd1d4 -r 6ffff12eb3fc SCP1000.cpp
--- a/SCP1000.cpp	Mon Oct 31 10:04:46 2011 +0000
+++ b/SCP1000.cpp	Mon Oct 31 10:55:15 2011 +0000
@@ -56,7 +56,7 @@
 
 bool SCP1000::performSelfTest() {
     setOperationMode(SELF_TEST);
-
+    wait(1); // wait enough time for the test to completes (> 0.25secs)
     return readRegister(DATARD8) & 1;
 }