From f4916fe418f4bbea861cbf6f933d5b65f0e5bf6c Mon Sep 17 00:00:00 2001
From: Matteo Pignataro <matteo.pignataro@skywarder.eu>
Date: Sun, 4 Dec 2022 11:24:49 +0000
Subject: [PATCH] [ActiveObject] Fixes non initialized flags in ActiveObject

---
 src/shared/ActiveObject.h | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/shared/ActiveObject.h b/src/shared/ActiveObject.h
index 2fdbb68c4..abecefa32 100644
--- a/src/shared/ActiveObject.h
+++ b/src/shared/ActiveObject.h
@@ -92,8 +92,8 @@ protected:
 
     miosix::Thread* thread = nullptr;  ///< Gives access to the thread object
 
-    std::atomic<bool> stopFlag;
-    std::atomic<bool> running;
+    std::atomic<bool> stopFlag{false};
+    std::atomic<bool> running{false};
 
 private:
     /**
-- 
GitLab