mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-16 21:05:35 +03:00
Allow CLI to be compiled out.
First cut, as proof-of-concept. This allows CJMCU target to be built without CLI and with Blackbox.
This commit is contained in:
parent
67c6967da7
commit
d0a9d14b87
15 changed files with 35 additions and 6 deletions
|
@ -84,6 +84,12 @@
|
|||
|
||||
#include "serial_cli.h"
|
||||
|
||||
// FIXME remove this for targets that don't need a CLI. Perhaps use a no-op macro when USE_CLI is not enabled
|
||||
// signal that we're in cli mode
|
||||
uint8_t cliMode = 0;
|
||||
|
||||
#ifdef USE_CLI
|
||||
|
||||
extern uint16_t cycleTime; // FIXME dependency on mw.c
|
||||
|
||||
void gpsEnablePassthrough(serialPort_t *gpsPassthroughPort);
|
||||
|
@ -132,9 +138,6 @@ static void cliFlashWrite(char *cmdline);
|
|||
static void cliFlashRead(char *cmdline);
|
||||
#endif
|
||||
|
||||
// signal that we're in cli mode
|
||||
uint8_t cliMode = 0;
|
||||
|
||||
// buffer
|
||||
static char cliBuffer[48];
|
||||
static uint32_t bufferIndex = 0;
|
||||
|
@ -1767,3 +1770,4 @@ void cliInit(serialConfig_t *serialConfig)
|
|||
{
|
||||
UNUSED(serialConfig);
|
||||
}
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue