Prevent arming when in CLI mode

This commit is contained in:
ProDrone 2015-08-27 14:31:51 +02:00
parent f7530df974
commit 3b9cd37a57
1 changed files with 1 additions and 0 deletions

View File

@ -1573,6 +1573,7 @@ void cliEnter(serialPort_t *serialPort)
setPrintfSerialPort(cliPort);
cliPrint("\r\nEntering CLI Mode, type 'exit' to return, or 'help'\r\n");
cliPrompt();
ENABLE_ARMING_FLAG(PREVENT_ARMING);
}
static void cliExit(char *cmdline)