Browse Source

Copter: Console output can be disabled

apm_2208
murata 3 years ago committed by Andrew Tridgell
parent
commit
fd9bb4c3d2
  1. 6
      ArduCopter/Parameters.cpp

6
ArduCopter/Parameters.cpp

@ -1203,7 +1203,7 @@ const AP_Param::ConversionInfo conversion_table[] = {
void Copter::load_parameters(void) void Copter::load_parameters(void)
{ {
if (!AP_Param::check_var_info()) { if (!AP_Param::check_var_info()) {
hal.console->printf("Bad var table\n"); DEV_PRINTF("Bad var table\n");
AP_HAL::panic("Bad var table"); AP_HAL::panic("Bad var table");
} }
@ -1213,13 +1213,13 @@ void Copter::load_parameters(void)
g.format_version != Parameters::k_format_version) { g.format_version != Parameters::k_format_version) {
// erase all parameters // erase all parameters
hal.console->printf("Firmware change: erasing EEPROM...\n"); DEV_PRINTF("Firmware change: erasing EEPROM...\n");
StorageManager::erase(); StorageManager::erase();
AP_Param::erase_all(); AP_Param::erase_all();
// save the current format version // save the current format version
g.format_version.set_and_save(Parameters::k_format_version); g.format_version.set_and_save(Parameters::k_format_version);
hal.console->printf("done.\n"); DEV_PRINTF("done.\n");
} }
uint32_t before = micros(); uint32_t before = micros();

Loading…
Cancel
Save