From 112ab6129629e027cd846c7e9f5993e7fa6b5367 Mon Sep 17 00:00:00 2001 From: Ruffalo Lavoisier Date: Sat, 14 Sep 2024 11:56:15 +0900 Subject: [PATCH] Remote unsed pram --- src/hal/environment.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/hal/environment.cpp b/src/hal/environment.cpp index 8637149eb..14f111cb1 100644 --- a/src/hal/environment.cpp +++ b/src/hal/environment.cpp @@ -224,9 +224,8 @@ uint32_t OswHal::Environment::getStepsTotalWeek() { #ifdef OSW_FEATURE_STATS_STEPS this->commitStepStatistics(); uint32_t sum = 0; - uint32_t currDoM = 0; // Unused, but required by function signature uint32_t currDoW = 0; - OswHal::getInstance()->getLocalDate(&currDoM, &currDoW); + OswHal::getInstance()->getLocalDate(nullptr, &currDoW); for (uint8_t i = 0; i < 7; i++) { if (i == currDoW) { sum = sum + this->getStepsToday();