From 4658ac1d1ea151ed56b2cd3f5fe60f7f3e6c88d3 Mon Sep 17 00:00:00 2001 From: Maximilian Bundscherer Date: Wed, 3 Aug 2022 14:40:21 +0200 Subject: [PATCH] Update to v.0.3.1 and fix battery state --- independer-app/src/device/mb-utils.h | 6 ++++++ independer-app/src/main.cpp | 2 +- independer-app/src/workflow/workflow-independer.h | 2 +- 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/independer-app/src/device/mb-utils.h b/independer-app/src/device/mb-utils.h index 8bc07a1..e1068d9 100644 --- a/independer-app/src/device/mb-utils.h +++ b/independer-app/src/device/mb-utils.h @@ -1,5 +1,11 @@ #include "driver/rtc_io.h" //Low Power Mode +void utils_init_battery_meas() +{ + pinMode(21, OUTPUT); + digitalWrite(21, LOW); +} + int utils_get_battery() { diff --git a/independer-app/src/main.cpp b/independer-app/src/main.cpp index 9fe39d7..50fa84b 100644 --- a/independer-app/src/main.cpp +++ b/independer-app/src/main.cpp @@ -24,7 +24,7 @@ boolean c_actor_mode = false; * #################################### */ // Product Config -String c_product_version = "v.0.3.0"; +String c_product_version = "v.0.3.1"; boolean c_demo_mode = false; /* diff --git a/independer-app/src/workflow/workflow-independer.h b/independer-app/src/workflow/workflow-independer.h index a3a3f0a..6f3a858 100644 --- a/independer-app/src/workflow/workflow-independer.h +++ b/independer-app/src/workflow/workflow-independer.h @@ -64,7 +64,7 @@ boolean workflow_independer_init(boolean isActor, String productVersion, boolean LoRa.setCodingRate4(LORA_SIG_CODING_RATE_DENOMINATOR); Serial.println("- Init Battery Meas"); - // utils_init_battery_meas(); + utils_init_battery_meas(); Serial.println("First Meas " + String(utils_get_battery()) + " mV"); Serial.println("- Init Low Power Mode");