supprimer les warnings

Dependencies:   mbed projet_embarque WakeUp SigfoxToiture DHT DS1820

Revision:
4:54e0220b3d83
Parent:
3:6af60ea9a240
Child:
5:a5a213701cd1
--- a/main.cpp	Tue Oct 15 12:27:43 2019 +0000
+++ b/main.cpp	Tue Oct 15 13:08:34 2019 +0000
@@ -9,8 +9,6 @@
 #define GROVE_MOIST_MIN     0
 #define GROVE_MOIST_MAX     0.55
 #define LOG_RANGE           5.0f
-#define RAW_RANGE           1024.0f
-
 
 float Temp_Sol;
 float Temp_Air;
@@ -70,8 +68,8 @@
 
 void ReadLumi(){
     float raw=lumiere.read();
-    float loglux=raw*LOG_RANGE/RAW_RANGE;
-    Lumiere=(float)(pow(10.0f,loglux)*255.0f)/10000.0f;
+    float loglux=raw*LOG_RANGE;
+    Lumiere=(float)(pow(10,loglux)*255.0f)/10000;
     //Lumiere=loglux;
 }