From 3c2252fa0ddd79805ca660f4d50ff40fa8f80e84 Mon Sep 17 00:00:00 2001 From: Lorenz Meier Date: Mon, 19 Oct 2015 13:14:12 +0200 Subject: [PATCH] mb12xx: Fixed code style --- src/drivers/mb12xx/mb12xx.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/drivers/mb12xx/mb12xx.cpp b/src/drivers/mb12xx/mb12xx.cpp index ecd2ea04a6..f3cfa0e267 100644 --- a/src/drivers/mb12xx/mb12xx.cpp +++ b/src/drivers/mb12xx/mb12xx.cpp @@ -143,7 +143,8 @@ private: int _cycling_rate; /* */ uint8_t _index_counter; /* temporary sonar i2c address */ std::vector addr_ind; /* temp sonar i2c address vector */ - std::vector _latest_sonar_measurements; /* vector to store latest sonar measurements in before writing to report */ + std::vector + _latest_sonar_measurements; /* vector to store latest sonar measurements in before writing to report */ /** @@ -274,7 +275,7 @@ MB12XX::init() struct distance_sensor_s ds_report = {}; _distance_sensor_topic = orb_advertise_multi(ORB_ID(distance_sensor), &ds_report, - &_orb_class_instance, ORB_PRIO_LOW); + &_orb_class_instance, ORB_PRIO_LOW); if (_distance_sensor_topic == nullptr) { DEVICE_LOG("failed to create distance_sensor object. Did you start uOrb?"); @@ -862,7 +863,7 @@ test() warnx("periodic read %u", i); warnx("valid %u", (float)report.current_distance > report.min_distance - && (float)report.current_distance < report.max_distance ? 1 : 0); + && (float)report.current_distance < report.max_distance ? 1 : 0); warnx("measurement: %0.3f", (double)report.current_distance); warnx("time: %llu", report.timestamp); }