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

Dependencies:   mbed LoRaWAN-lib SX1276Lib

Revision:
30:cd65060c06a5
Parent:
29:ca6caa47ef38
Child:
31:3ac22fb6b48d
Child:
33:a6aab1bd2bdb
--- a/app/main.cpp	Thu Apr 25 15:49:17 2019 +0000
+++ b/app/main.cpp	Fri May 03 18:33:44 2019 +0000
@@ -994,9 +994,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/2;
-    measurements[3] = (uint8_t) light_2_reading/2;
-    measurements[4] = (uint8_t) rh_reading/2;
+    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;