aboutsummaryrefslogtreecommitdiff
path: root/src/drivers/ll40ls
diff options
context:
space:
mode:
authorThomas Gubler <thomasgubler@gmail.com>2014-12-13 18:28:58 +0100
committerLorenz Meier <lm@inf.ethz.ch>2014-12-14 12:10:29 +0100
commit0575f67300e54ebed2dd9d16013efb37cecefb44 (patch)
treeba214445adee8d373071420602855955ef3c35e3 /src/drivers/ll40ls
parentcc2dae23f9a7c1bfe1a8f35cbbecff4f7466952a (diff)
downloadpx4-firmware-0575f67300e54ebed2dd9d16013efb37cecefb44.tar.gz
px4-firmware-0575f67300e54ebed2dd9d16013efb37cecefb44.tar.bz2
px4-firmware-0575f67300e54ebed2dd9d16013efb37cecefb44.zip
ll40ls: fix whitespace
Diffstat (limited to 'src/drivers/ll40ls')
-rw-r--r--src/drivers/ll40ls/ll40ls.cpp18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/drivers/ll40ls/ll40ls.cpp b/src/drivers/ll40ls/ll40ls.cpp
index 6793acd81..a69fc56e9 100644
--- a/src/drivers/ll40ls/ll40ls.cpp
+++ b/src/drivers/ll40ls/ll40ls.cpp
@@ -233,11 +233,11 @@ LL40LS::~LL40LS()
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);
@@ -263,7 +263,7 @@ LL40LS::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();
@@ -314,9 +314,9 @@ LL40LS::probe()
goto ok;
}
- debug("WHO_AM_I byte mismatch 0x%02x should be 0x%02x val=0x%02x\n",
- (unsigned)who_am_i,
- LL40LS_WHO_AM_I_REG_VAL,
+ debug("WHO_AM_I byte mismatch 0x%02x should be 0x%02x val=0x%02x\n",
+ (unsigned)who_am_i,
+ LL40LS_WHO_AM_I_REG_VAL,
(unsigned)val);
}
@@ -704,7 +704,7 @@ LL40LS::print_info()
perf_print_counter(_buffer_overflows);
printf("poll interval: %u ticks\n", _measure_ticks);
_reports->print_info("report queue");
- printf("distance: %ucm (0x%04x)\n",
+ printf("distance: %ucm (0x%04x)\n",
(unsigned)_last_distance, (unsigned)_last_distance);
}
@@ -969,8 +969,8 @@ ll40ls_main(int argc, char *argv[])
}
}
- const char *verb = argv[optind];
-
+ const char *verb = argv[optind];
+
/*
* Start/load the driver.
*/