diff options
author | Johan Jansen <jnsn.johan@gmail.com> | 2015-01-07 23:28:20 +0100 |
---|---|---|
committer | Johan Jansen <jnsn.johan@gmail.com> | 2015-01-15 14:37:51 +0100 |
commit | 9ea086bf2d9b3d9d3d480f6ae83447b9669f3603 (patch) | |
tree | 15eb7b3ad73f74e7318774bcaaa40909c50b9d03 /src/modules/land_detector/land_detector_main.cpp | |
parent | 10a2dd8a346a6a08a0d9b52739f20b842d460646 (diff) | |
download | px4-firmware-9ea086bf2d9b3d9d3d480f6ae83447b9669f3603.tar.gz px4-firmware-9ea086bf2d9b3d9d3d480f6ae83447b9669f3603.tar.bz2 px4-firmware-9ea086bf2d9b3d9d3d480f6ae83447b9669f3603.zip |
Astyle: Run astyle to fix code formatting
Diffstat (limited to 'src/modules/land_detector/land_detector_main.cpp')
-rw-r--r-- | src/modules/land_detector/land_detector_main.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/modules/land_detector/land_detector_main.cpp b/src/modules/land_detector/land_detector_main.cpp index 2bc89e752..7c0ffb82a 100644 --- a/src/modules/land_detector/land_detector_main.cpp +++ b/src/modules/land_detector/land_detector_main.cpp @@ -51,7 +51,7 @@ #include "MulticopterLandDetector.h" //Function prototypes -static int land_detector_start(const char* mode); +static int land_detector_start(const char *mode); static void land_detector_stop(); /** @@ -110,7 +110,7 @@ static void land_detector_stop() /** * Start new task, fails if it is already running. Returns OK if successful **/ -static int land_detector_start(const char* mode) +static int land_detector_start(const char *mode) { if (land_detector_task != nullptr || _landDetectorTaskID != -1) { errx(1, "already running"); @@ -118,15 +118,15 @@ static int land_detector_start(const char* mode) } //Allocate memory - if(!strcmp(mode, "fixedwing")) { + if (!strcmp(mode, "fixedwing")) { land_detector_task = new FixedwingLandDetector(); - } - else if(!strcmp(mode, "multicopter")) { + + } else if (!strcmp(mode, "multicopter")) { land_detector_task = new MulticopterLandDetector(); - } - else { + + } else { errx(1, "[mode] must be either 'fixedwing' or 'multicopter'"); - return -1; + return -1; } //Check if alloc worked |