From 697566177c65aa0448533275c9963af6ee32d8ff Mon Sep 17 00:00:00 2001
From: Claudio Micheli <claudio@auterion.com>
Date: Tue, 12 Mar 2019 10:00:18 +0100
Subject: [PATCH] Commander: Properly initialized another boolean variable.

Signed-off-by: Claudio Micheli <claudio@auterion.com>
---
 src/modules/commander/Commander.hpp | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/modules/commander/Commander.hpp b/src/modules/commander/Commander.hpp
index 2404c0d4c2..4741b755ca 100644
--- a/src/modules/commander/Commander.hpp
+++ b/src/modules/commander/Commander.hpp
@@ -179,10 +179,10 @@ private:
 	bool 				_onboard_controller_lost{false};
 
 	hrt_abstime	_datalink_last_heartbeat_avoidance_system{0};
-	bool				_avoidance_system_lost{0};
+	bool				_avoidance_system_lost{false};
 	hrt_abstime	_avoidance_system_not_started{0};
 
-	bool		_avoidance_system_status_change{0};
+	bool		_avoidance_system_status_change{false};
 	uint8_t	_datalink_last_status_avoidance_system{telemetry_status_s::MAV_STATE_UNINIT};
 
 	int			_iridiumsbd_status_sub{-1};
-- 
GitLab