From 56e3081b7ebb29818483e5a74b5ff560832cb9d0 Mon Sep 17 00:00:00 2001 From: Federico Lolli <federico.lolli@skywarder.eu> Date: Sun, 12 May 2024 13:43:04 +0200 Subject: [PATCH] [ARP] Fix start method on SMController --- .../Groundstation/Automated/SMController/SMController.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/boards/Groundstation/Automated/SMController/SMController.cpp b/src/boards/Groundstation/Automated/SMController/SMController.cpp index 002bf4c82..d98b1e1f6 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; } -- GitLab