Skip to content

Commit

Permalink
Refactor WashingTask code by removing not necessary comments
Browse files Browse the repository at this point in the history
  • Loading branch information
23Emaaaa committed Dec 5, 2023
1 parent fdac672 commit 562cff6
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions smart_bridge/src/tasks/WashingTask.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ WashingTask::WashingTask(BlinkTask *blinkTask,
this->lcd = new LCD(0x27, 16, 2);
this->gate = new ServoImpl(SERVO_PIN);
this->blinkTask = blinkTask;
this->blinkTask->init(500); // Blink every 500 ms the red led
this->blinkTask->setActive(false); // TODO: Check if this is necessary
this->blinkTask->init(500);
this->blinkTask->setActive(false);
this->countDownTask = countDownTask;
this->temperatureTask = temperatureTask;
this->countDownTask->setActive(false);
Expand Down Expand Up @@ -67,8 +67,6 @@ void WashingTask::handleStartWashing()

void WashingTask::handleStartsCountdown()
{
// this->countDownTask->tick();
// this->temperatureTask->tick();
if (this->elapsedTime() >= checkInterval)
{
this->resetTime();
Expand Down

0 comments on commit 562cff6

Please sign in to comment.