Skip to content

Commit

Permalink
Remove unused param
Browse files Browse the repository at this point in the history
- replace to nullptr
  • Loading branch information
RuffaloLavoisier authored Sep 14, 2024
1 parent 0f51850 commit b16160b
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 @@ -132,9 +132,8 @@ void OswHal::Environment::setupStepStatistics() {
* @param alwaysPrintStepStatistics Set to true to print the step history to the console
*/
void OswHal::Environment::commitStepStatistics(const bool& alwaysPrintStepStatistics) {
uint32_t currDoM = 0; // Unused, but required by function signature
uint32_t currDoW = 0;
OswHal::getInstance()->getLocalDate(&currDoM, &currDoW);
OswHal::getInstance()->getLocalDate(nullptr, &currDoW);
bool changedDoW = currDoW != this->_stepsLastDoW;
if(changedDoW) {
Preferences prefs;
Expand Down

0 comments on commit b16160b

Please sign in to comment.