GCS_MAVLink: rename MSG_RETRY_DEFERRED to MSG_LAST and clarify comments

This commit is contained in:
Peter Barker 2017-07-24 18:40:43 +10:00 committed by Francisco Ferreira
parent 0c5f66dc59
commit a841fddb3e

View File

@ -75,7 +75,7 @@ enum ap_message {
MSG_BATTERY_STATUS,
MSG_AOA_SSA,
MSG_LANDING,
MSG_RETRY_DEFERRED // this must be last
MSG_LAST // MSG_LAST must be the last entry in this enum
};
///
@ -356,8 +356,9 @@ private:
static AP_HAL::Util::perf_counter_t _perf_packet;
static AP_HAL::Util::perf_counter_t _perf_update;
// deferred message handling
enum ap_message deferred_messages[MSG_RETRY_DEFERRED];
// deferred message handling. We size the deferred_message
// ringbuffer so we can defer every message type
enum ap_message deferred_messages[MSG_LAST];
uint8_t next_deferred_message;
uint8_t num_deferred_messages;