mixer_group: improved get_multirotor_count () code readbility.

Signed-off-by: Claudio Micheli <claudio@auterion.com>
This commit is contained in:
Claudio Micheli 2019-08-07 14:25:42 +02:00 committed by Beat Küng
parent 09d79b221f
commit 5fe7992af5

View File

@ -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;