aboutsummaryrefslogtreecommitdiff
path: root/src/drivers/trone/trone.cpp
diff options
context:
space:
mode:
authorThomas Gubler <thomasgubler@gmail.com>2014-12-13 18:27:38 +0100
committerLorenz Meier <lm@inf.ethz.ch>2014-12-14 12:10:28 +0100
commit834ff859307b178faf25faecef1b2d29b7e17d6f (patch)
tree6a1a5321b5921c0945c6c8e5341247162306f638 /src/drivers/trone/trone.cpp
parent8fd9f98904c977b1bc41a98b07acb123c976cbac (diff)
downloadpx4-firmware-834ff859307b178faf25faecef1b2d29b7e17d6f.tar.gz
px4-firmware-834ff859307b178faf25faecef1b2d29b7e17d6f.tar.bz2
px4-firmware-834ff859307b178faf25faecef1b2d29b7e17d6f.zip
trone: fix whitespace
Diffstat (limited to 'src/drivers/trone/trone.cpp')
-rw-r--r--src/drivers/trone/trone.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/drivers/trone/trone.cpp b/src/drivers/trone/trone.cpp
index 2f2f692a1..dff86cf71 100644
--- a/src/drivers/trone/trone.cpp
+++ b/src/drivers/trone/trone.cpp
@@ -256,11 +256,11 @@ TRONE::~TRONE()
if (_reports != nullptr) {
delete _reports;
}
-
+
if (_class_instance != -1) {
unregister_class_devname(RANGE_FINDER_DEVICE_PATH, _class_instance);
}
-
+
// free perf counters
perf_free(_sample_perf);
perf_free(_comms_errors);
@@ -286,7 +286,7 @@ TRONE::init()
_class_instance = register_class_devname(RANGE_FINDER_DEVICE_PATH);
- if (_class_instance == CLASS_DEVICE_PRIMARY) {
+ if (_class_instance == CLASS_DEVICE_PRIMARY) {
/* get a publish handle on the range finder topic */
struct range_finder_report rf_report;
measure();
@@ -559,7 +559,7 @@ TRONE::collect()
report.error_count = perf_event_count(_comms_errors);
report.distance = si_units;
report.valid = crc8(val, 2) == val[2] && si_units > get_minimum_distance() && si_units < get_maximum_distance() ? 1 : 0;
-
+
/* publish it, if we are the primary */
if (_range_finder_topic >= 0) {