projet capteur connecté ST/SE

Dependencies:   HP206C mbed HMC5883L DHT DS1820

Revision:
77:67faccef7f14
Parent:
75:9f6a6c7d4bea
--- a/altitude.cpp	Mon Oct 15 07:57:53 2018 +0000
+++ b/altitude.cpp	Tue Dec 04 13:12:52 2018 +0000
@@ -8,10 +8,12 @@
         long P = 0;
         //barometre->reset();
         //pc.printf("SB, DEBUG : available? => %d \r\n", barometre->isAvailable() ); // DEBUG : show sensor status
-        wait(2);
+        //wait(2);
         P = barometre->ReadPressure();
         //pc.printf("P = %ul \r\n", P); // DEBUG : print pressure value
-        wait(3);
+        //wait(3);
         return P;
+    } else {
+        return -1;
     }
 }
\ No newline at end of file