summaryrefslogtreecommitdiff
path: root/src/drivers/Bma421.cpp
diff options
context:
space:
mode:
authorJean-François Milants <jf@codingfield.com>2021-04-02 15:33:49 (GMT)
committerJean-François Milants <jf@codingfield.com>2021-04-04 13:56:40 (GMT)
commit1d7576de64a33837434e6f414a74ae7dbe929196 (patch)
tree77b16266b33be4bcfa1b5d6ee34249f71b8858b7 /src/drivers/Bma421.cpp
parent52a90288fd2b744b68d584db316fcf3fede84262 (diff)
Reset the step count every day at midnight.
Diffstat (limited to 'src/drivers/Bma421.cpp')
-rw-r--r--src/drivers/Bma421.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/drivers/Bma421.cpp b/src/drivers/Bma421.cpp
index 4e33ef8..10d3e5e 100644
--- a/src/drivers/Bma421.cpp
+++ b/src/drivers/Bma421.cpp
@@ -105,3 +105,7 @@ Bma421::Values Bma421::Process() {
bool Bma421::IsOk() const {
return isOk;
}
+
+void Bma421::ResetStepCounter() {
+ bma423_reset_step_counter(&bma);
+}