From 154bf512795ca30a58a072b5f668c3f2cfc06469 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell <tridge@samba.org> Date: Fri, 14 Nov 2014 11:58:09 +1100 Subject: [PATCH] HAL_PX4: minor tidy up of if statement --- libraries/AP_HAL_PX4/RCOutput.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libraries/AP_HAL_PX4/RCOutput.cpp b/libraries/AP_HAL_PX4/RCOutput.cpp index 0aec41e8c..03b1fdd6b 100644 --- a/libraries/AP_HAL_PX4/RCOutput.cpp +++ b/libraries/AP_HAL_PX4/RCOutput.cpp @@ -142,7 +142,7 @@ void PX4RCOutput::enable_ch(uint8_t ch) if (ch >= PX4_NUM_OUTPUT_CHANNELS) { return; } - else if (ch >= 8 && !(_enabled_channels & (1U<<ch))) { + if (ch >= 8 && !(_enabled_channels & (1U<<ch))) { // this is the first enable of an auxillary channel - setup // aux channels now. This delayed setup makes it possible to // use BRD_PWM_COUNT to setup the number of PWM channels. -- GitLab