Copter: reject change_command if not in AUTO
This commit is contained in:
parent
bc4b2ff05d
commit
10158185d5
@ -4,6 +4,11 @@
|
||||
//----------------------------------------
|
||||
static void change_command(uint8_t cmd_index)
|
||||
{
|
||||
// check we are in AUTO mode
|
||||
if (control_mode != AUTO) {
|
||||
return;
|
||||
}
|
||||
|
||||
// limit range
|
||||
cmd_index = min(g.command_total - 1, cmd_index);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user