Skip to content
Snippets Groups Projects
Commit 154bf512 authored by Andrew Tridgell's avatar Andrew Tridgell
Browse files

HAL_PX4: minor tidy up of if statement

parent 9e9c62d2
No related branches found
No related tags found
No related merge requests found
......@@ -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.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment