From 5fe7992af5de6399c3ba1b31c3fb680dc74ccfac Mon Sep 17 00:00:00 2001 From: Claudio Micheli Date: Wed, 7 Aug 2019 14:25:42 +0200 Subject: [PATCH] mixer_group: improved get_multirotor_count () code readbility. Signed-off-by: Claudio Micheli --- src/lib/mixer/mixer_group.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/lib/mixer/mixer_group.cpp b/src/lib/mixer/mixer_group.cpp index 53f21db755..92d8756cc8 100644 --- a/src/lib/mixer/mixer_group.cpp +++ b/src/lib/mixer/mixer_group.cpp @@ -208,10 +208,9 @@ MixerGroup::get_multirotor_count() rotor_count = mixer->get_multirotor_count(); - if (rotor_count > 0) { - break; + if (rotor_count > 0) { break; } - } else { mixer = mixer -> _next;} + mixer = mixer -> _next; } return rotor_count;