Skip to content

Commit

Permalink
Merge pull request #110 from maxbundscherer/develop
Browse files Browse the repository at this point in the history
Update to v.0.3.1 and fix battery state
  • Loading branch information
maxbundscherer authored Aug 3, 2022
2 parents c3dbaca + 4658ac1 commit 1274b15
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
6 changes: 6 additions & 0 deletions independer-app/src/device/mb-utils.h
Original file line number Diff line number Diff line change
@@ -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()
{

Expand Down
2 changes: 1 addition & 1 deletion independer-app/src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;

/*
Expand Down
2 changes: 1 addition & 1 deletion independer-app/src/workflow/workflow-independer.h
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand Down

0 comments on commit 1274b15

Please sign in to comment.