diff --git a/src/boards/Groundstation/Automated/SMController/SMController.cpp b/src/boards/Groundstation/Automated/SMController/SMController.cpp index 002bf4c82e58f140288a058b6804e700a27f3ea7..d98b1e1f67d476bffa7923592a4851ba3ff5d935 100644 --- a/src/boards/Groundstation/Automated/SMController/SMController.cpp +++ b/src/boards/Groundstation/Automated/SMController/SMController.cpp @@ -63,19 +63,19 @@ bool SMController::start() result = scheduler->addTask(bind(&Propagator::update, &propagator), PropagatorConfig::PROPAGATOR_PERIOD, TaskScheduler::Policy::RECOVER); - ok &= result == 0; + ok &= result != 0; // add the Follower task result = scheduler->addTask(bind(&Follower::update, &follower), FollowerConfig::FOLLOWER_PERIOD, TaskScheduler::Policy::RECOVER); - ok &= result == 0; + ok &= result != 0; // add the update task result = scheduler->addTask(bind(&SMController::update, this), SMControllerConfig::UPDATE_PERIOD, TaskScheduler::Policy::SKIP); - ok &= result == 0; + ok &= result != 0; return ActiveObject::start() && ok; }