Skip to content

Commit

Permalink
Remote unsed pram
Browse files Browse the repository at this point in the history
  • Loading branch information
RuffaloLavoisier authored Sep 14, 2024
1 parent b16160b commit 112ab61
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/hal/environment.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 112ab61

Please sign in to comment.