Anish updated the code to work with L152. RTC seems to causing issue. Will have to disable LSE.
Dependencies: mbed LoRaWAN-lib SX1276Lib
Diff: app/main.cpp
- Revision:
- 37:24625e89879b
- Parent:
- 33:a6aab1bd2bdb
--- a/app/main.cpp Tue May 14 19:36:51 2019 +0000 +++ b/app/main.cpp Fri Jul 19 16:03:32 2019 +0000 @@ -975,14 +975,14 @@ break; } - // Measure voltage preval - float battery_reading = BAT_PIN.read()*1000; - measurements[0] = (uint8_t) rintf(battery_reading/10); - // Start test relayPin = 1; AppLedStateOn = 1; Led3StateChanged = true; + + // Measure voltage preval + float battery_reading = BAT_PIN.read()*1000; + measurements[0] = (uint8_t) rintf(battery_reading/10); } void endTest(uint8_t *measurements) {