Browse Source

Copter: disable Log_Read if no CLI

master
Andrew Tridgell 11 years ago
parent
commit
a49d133d2a
  1. 2
      ArduCopter/Log.pde

2
ArduCopter/Log.pde

@ -704,6 +704,7 @@ static const struct LogStructure log_structure[] PROGMEM = { @@ -704,6 +704,7 @@ static const struct LogStructure log_structure[] PROGMEM = {
"ERR", "BB", "Subsys,ECode" },
};
#if CLI_ENABLED == ENABLED
// Read the DataFlash log memory
static void Log_Read(uint16_t log_num, uint16_t start_page, uint16_t end_page)
{
@ -721,6 +722,7 @@ static void Log_Read(uint16_t log_num, uint16_t start_page, uint16_t end_page) @@ -721,6 +722,7 @@ static void Log_Read(uint16_t log_num, uint16_t start_page, uint16_t end_page)
print_flight_mode,
cliSerial);
}
#endif // CLI_ENABLED
// start a new log
static void start_logging()

Loading…
Cancel
Save