diff --git a/src/modules/commander/commander.cpp b/src/modules/commander/commander.cpp index fd543f9931..34bd46b7d1 100644 --- a/src/modules/commander/commander.cpp +++ b/src/modules/commander/commander.cpp @@ -922,8 +922,7 @@ static void commander_set_home_position(orb_advert_t &homePub, home_position_s & home.yaw = attitude.yaw; - warnx("home: lat = %.7f, lon = %.7f, alt = %.2f ", home.lat, home.lon, (double)home.alt); - mavlink_log_info(mavlink_fd, "home: %.7f, %.7f, %.2f", home.lat, home.lon, (double)home.alt); + mavlink_and_console_log_info(mavlink_fd, "home: %.7f, %.7f, %.2f", home.lat, home.lon, (double)home.alt); /* announce new home position */ if (homePub != nullptr) {