FlightTasks: fix switch case style

This commit is contained in:
MaEtUgR 2018-07-12 09:59:50 +02:00 committed by ChristophTobler
parent e95d795b08
commit 7d4fcccf83

View File

@ -203,12 +203,14 @@ void FlightTasks::_updateCommand()
// check what command it is
FlightTaskIndex desired_task = FlightTaskIndex::None;
switch(command.command) {
case vehicle_command_s::VEHICLE_CMD_DO_ORBIT :
desired_task = FlightTaskIndex::Orbit;
break;
// ignore all unkown commands
default : return;
switch (command.command) {
case vehicle_command_s::VEHICLE_CMD_DO_ORBIT :
desired_task = FlightTaskIndex::Orbit;
break;
// ignore all unkown commands
default : return;
}
// switch to the commanded task