From 562cff62aad15027b9492f0d2f47bda973f2b012 Mon Sep 17 00:00:00 2001 From: Emanuele Dajko Date: Tue, 5 Dec 2023 12:50:19 +0100 Subject: [PATCH] Refactor WashingTask code by removing not necessary comments --- smart_bridge/src/tasks/WashingTask.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/smart_bridge/src/tasks/WashingTask.cpp b/smart_bridge/src/tasks/WashingTask.cpp index 5b7978a..2634c2e 100644 --- a/smart_bridge/src/tasks/WashingTask.cpp +++ b/smart_bridge/src/tasks/WashingTask.cpp @@ -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); @@ -67,8 +67,6 @@ void WashingTask::handleStartWashing() void WashingTask::handleStartsCountdown() { - // this->countDownTask->tick(); - // this->temperatureTask->tick(); if (this->elapsedTime() >= checkInterval) { this->resetTime();