Skip to content

Commit 255160e

Browse files
committed
Include Battery voltage report in Manual Wakeup task triggered by double tap
1 parent 2b486e8 commit 255160e

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

eloc610LowPowerPartition/src/ManualWakeup.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,8 @@
3434
#include "ManualWakeup.hpp"
3535
#include "ElocSystem.hpp"
3636

37+
#include "Battery.hpp"
38+
3739

3840
static const char *TAG = "ManualWakeup";
3941

@@ -77,6 +79,9 @@ void wakeup_task (void *pvParameters)
7779
if (click_src.active)
7880
ESP_LOGI(TAG, "LIS3DH %s\n",
7981
click_src.s_click ? "single click" : "double click");
82+
83+
float voltage = Battery::GetInstance().getVoltage();
84+
ESP_LOGI(TAG, "Bat Voltage %.3f\n", voltage);
8085
}
8186
}
8287
}

0 commit comments

Comments
 (0)