From 419896f983d9d5298da0e7bda6450901088c6bc4 Mon Sep 17 00:00:00 2001 From: Lorenz Meier Date: Fri, 11 Jan 2013 18:02:47 +0100 Subject: [PATCH] WP fix contributed by James Goppert --- apps/mavlink/waypoints.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/mavlink/waypoints.h b/apps/mavlink/waypoints.h index 736d1f119f..c32ab32e5a 100644 --- a/apps/mavlink/waypoints.h +++ b/apps/mavlink/waypoints.h @@ -98,8 +98,8 @@ struct mavlink_wpm_storage { uint16_t max_size; uint16_t rcv_size; enum MAVLINK_WPM_STATES current_state; - uint16_t current_wp_id; ///< Waypoint in current transmission - uint16_t current_active_wp_id; ///< Waypoint the system is currently heading towards + int16_t current_wp_id; ///< Waypoint in current transmission + int16_t current_active_wp_id; ///< Waypoint the system is currently heading towards uint16_t current_count; uint8_t current_partner_sysid; uint8_t current_partner_compid;