Anish updated the code to work with L152. RTC seems to causing issue. Will have to disable LSE.

Dependencies:   mbed LoRaWAN-lib SX1276Lib

Revision:
21:e3052f1fa2a7
Parent:
20:e75b3340d1c7
Child:
22:e36bf3b9776e
--- a/app/main.cpp	Wed Jan 30 17:18:24 2019 +0000
+++ b/app/main.cpp	Wed Jan 30 20:34:14 2019 +0000
@@ -907,9 +907,9 @@
     int rh_reading = RH_PIN.read()*1000 - vce_reading;
     
     measurements[1] = (uint8_t) rintf(battery_reading/10);
-    measurements[2] = (uint8_t) light_1_reading;
-    measurements[3] = (uint8_t) light_2_reading;
-    measurements[4] = (uint8_t) rh_reading;
+    measurements[2] = (uint8_t) light_1_reading/2;
+    measurements[3] = (uint8_t) light_2_reading/2;
+    measurements[4] = (uint8_t) rh_reading/2;
     
     // End test
     relayPin = 0;