Plane: resolve compiler warning while using send_text

non-functional change
This commit is contained in:
Randy Mackay 2017-09-20 10:02:58 +09:00
parent 2073d65975
commit 667cdcdfcf
1 changed files with 1 additions and 1 deletions

View File

@ -1757,7 +1757,7 @@ void GCS_MAVLINK_Plane::handleMessage(mavlink_message_t* msg)
// just do altitude for now
plane.next_WP_loc.alt += -packet.z*100.0;
gcs().send_text(MAV_SEVERITY_INFO, "Change alt to %.1f",
(plane.next_WP_loc.alt - plane.home.alt)*0.01);
(double)((plane.next_WP_loc.alt - plane.home.alt)*0.01));
break;
}