Mathieu Moneyron / Mbed 2 deprecated projetS1

Dependencies:   HP206C mbed HMC5883L DHT DS1820

Revision:
77:67faccef7f14
Parent:
76:04941d128fff
Child:
78:ab7595f2133b
--- a/main.cpp	Mon Oct 15 07:57:53 2018 +0000
+++ b/main.cpp	Tue Dec 04 13:12:52 2018 +0000
@@ -41,7 +41,7 @@
         else{
             solT = temp;
             }
-        solH = getSoilHumidity( humidSensor, airValue,waterValue, false);
+        solH = getSoilHumidity( humidSensor, airValue,waterValue, true);
         
         msg = genMessage( solH,  airH,  solT, airT, P,magXYZ);
         // Display
@@ -53,8 +53,12 @@
         pc.printf("Mag : X:%d ; Y:%d ; Z:%d\n\r", magXYZ[0], magXYZ[1], magXYZ[2]); 
         pc.printf("Pression : %u Pa\r\n", P);
         pc.printf("AT$SF=%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x\r\n", msg[0], msg[1], msg[2], msg[3], msg[4], msg[5], msg[6], msg[7], msg[8], msg[9], msg[10], msg[11]);
-        wisol.printf("AT$SF=%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x\r\n", msg[0], msg[1], msg[2], msg[3], msg[4], msg[5], msg[6], msg[7], msg[8], msg[9], msg[10], msg[11]);
+        //wisol.printf("AT$SF=%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x\r\n", msg[0], msg[1], msg[2], msg[3], msg[4], msg[5], msg[6], msg[7], msg[8], msg[9], msg[10], msg[11]);
         pc.printf("\n\r");
-        wait(WAIT_TIME - 7);
+        free(msg);
+        msg = NULL;
+        wait(3);
+        //wait(WAIT_TIME - 7);
+        //comment
     }
 }