From ce439345c5a959cb40e23a9770893ccb61f38bff Mon Sep 17 00:00:00 2001 From: Lorenz Meier Date: Thu, 2 Jul 2015 11:17:30 +0200 Subject: [PATCH] HIL driver: Fix build breakage --- src/drivers/hil/hil.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/drivers/hil/hil.cpp b/src/drivers/hil/hil.cpp index c3d99e80fe..b6586856cc 100644 --- a/src/drivers/hil/hil.cpp +++ b/src/drivers/hil/hil.cpp @@ -123,7 +123,7 @@ private: bool _primary_pwm_device; volatile bool _task_should_exit; - bool _armed; + static bool _armed; MixerGroup *_mixers; @@ -163,6 +163,8 @@ HIL *g_hil; } // namespace +bool HIL::_armed = false; + HIL::HIL() : #ifdef __PX4_NUTTX CDev @@ -180,7 +182,6 @@ HIL::HIL() : _num_outputs(0), _primary_pwm_device(false), _task_should_exit(false), - _armed(false), _mixers(nullptr) { _debug_enabled = true;