From 16dea15d541bd01af39442c74da6e108e02dc696 Mon Sep 17 00:00:00 2001 From: CarlOlsson Date: Sun, 3 Apr 2016 17:21:13 +0200 Subject: [PATCH] AStyle --- src/modules/ekf2/ekf2_main.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/modules/ekf2/ekf2_main.cpp b/src/modules/ekf2/ekf2_main.cpp index 50df28a0c0..975b0a2784 100644 --- a/src/modules/ekf2/ekf2_main.cpp +++ b/src/modules/ekf2/ekf2_main.cpp @@ -671,6 +671,7 @@ void Ekf2::task_main() if (_wind_pub == nullptr) { _wind_pub = orb_advertise(ORB_ID(wind_estimate), &wind_estimate); + } else { orb_publish(ORB_ID(wind_estimate), _wind_pub, &wind_estimate); }