Anish updated the code to work with L152. RTC seems to causing issue. Will have to disable LSE.
Dependencies: mbed LoRaWAN-lib SX1276Lib
Revision 37:24625e89879b, committed 2019-07-19
- Comitter:
- uss1994
- Date:
- Fri Jul 19 16:03:32 2019 +0000
- Parent:
- 33:a6aab1bd2bdb
- Commit message:
- measure after the relay triggers
Changed in this revision
app/main.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- 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) {