Copter: Console output can be disabled

This commit is contained in:
murata 2022-03-21 18:32:53 +09:00 committed by Andrew Tridgell
parent 970af16251
commit fd9bb4c3d2

View File

@ -1203,7 +1203,7 @@ const AP_Param::ConversionInfo conversion_table[] = {
void Copter::load_parameters(void)
{
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");
}
@ -1213,13 +1213,13 @@ void Copter::load_parameters(void)
g.format_version != Parameters::k_format_version) {
// erase all parameters
hal.console->printf("Firmware change: erasing EEPROM...\n");
DEV_PRINTF("Firmware change: erasing EEPROM...\n");
StorageManager::erase();
AP_Param::erase_all();
// save the current 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();