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:
- 31:3ac22fb6b48d
- Parent:
- 30:cd65060c06a5
- Child:
- 32:5872a473999c
--- a/app/main.cpp Fri May 03 18:33:44 2019 +0000 +++ b/app/main.cpp Mon May 06 13:09:53 2019 +0000 @@ -975,14 +975,16 @@ break; } + // 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); - // Start test - relayPin = 1; - AppLedStateOn = 1; - Led3StateChanged = true; + } void endTest(uint8_t *measurements) {