Tracker: Unify from print or println to printf.

This commit is contained in:
murata 2017-01-21 13:32:39 +09:00 committed by Andrew Tridgell
parent a73c1daa2e
commit 577d19f91d
2 changed files with 3 additions and 3 deletions

View File

@ -390,12 +390,12 @@ void Tracker::load_parameters(void)
g.format_version != Parameters::k_format_version) {
// erase all parameters
hal.console->println("Firmware change: erasing EEPROM...");
hal.console->printf("Firmware change: erasing EEPROM...\n");
AP_Param::erase_all();
// save the current format version
g.format_version.set_and_save(Parameters::k_format_version);
hal.console->println("done.");
hal.console->printf("done.\n");
}
uint32_t before = AP_HAL::micros();

View File

@ -68,7 +68,7 @@ void Tracker::init_tracker()
if (g.compass_enabled==true) {
if (!compass.init() || !compass.read()) {
hal.console->println("Compass initialisation failed!");
hal.console->printf("Compass initialisation failed!\n");
g.compass_enabled = false;
} else {
ahrs.set_compass(&compass);