From df4b07937e0ea66b3f43d7de784ad09c7c2806f3 Mon Sep 17 00:00:00 2001 From: Lorenz Meier Date: Thu, 9 Jul 2015 00:01:20 +0200 Subject: [PATCH] baro sim: Fix code style --- src/platforms/posix/drivers/barosim/baro.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/platforms/posix/drivers/barosim/baro.cpp b/src/platforms/posix/drivers/barosim/baro.cpp index 8958fedfe4..bcfbe965d8 100644 --- a/src/platforms/posix/drivers/barosim/baro.cpp +++ b/src/platforms/posix/drivers/barosim/baro.cpp @@ -279,7 +279,7 @@ BAROSIM::init() &_orb_class_instance, (is_external()) ? ORB_PRIO_HIGH : ORB_PRIO_DEFAULT); if (_baro_topic == nullptr) { - PX4_ERR("failed to create sensor_baro publication"); + PX4_ERR("failed to create sensor_baro publication"); } /* this do..while is goto without goto */ @@ -664,8 +664,7 @@ BAROSIM::collect() if (_baro_topic != nullptr) { /* publish it */ orb_publish(ORB_ID(sensor_baro), _baro_topic, &report); - } - else { + } else { PX4_WARN("BAROSIM::collect _baro_topic not initialized"); } }