mavlink: remove typedef of anonymous struct

Clang doesn't seem to like these.
This commit is contained in:
Julian Oes
2020-12-06 23:55:59 -05:00
committed by Daniel Agar
parent 8900c6200d
commit a2ff53b018
3 changed files with 11 additions and 11 deletions
+3 -3
View File
@@ -105,14 +105,14 @@ private:
// There are MAVLINK_COMM_0 to MAVLINK_COMM_3, so it should be 4.
static const unsigned MAX_MAVLINK_CHANNEL = 4;
typedef struct {
struct command_item_s {
mavlink_command_long_t command = {};
hrt_abstime timestamp_us = 0;
hrt_abstime last_time_sent_us = 0;
int8_t num_sent_per_channel[MAX_MAVLINK_CHANNEL] = {-1, -1, -1, -1}; // -1: channel did not request this command to be sent, -2: channel got an ack for this command
} command_item_t;
};
TimestampedList<command_item_t> _commands{3};
TimestampedList<command_item_s> _commands{3};
bool _debug_enabled = false;
static constexpr uint8_t RETRIES = 3;