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
+4 -4
View File
@@ -55,7 +55,7 @@ class TimestampedList
public:
TimestampedList(int num_items)
{
_list = new item_t[num_items];
_list = new item_s[num_items];
_list_len = num_items;
}
@@ -148,12 +148,12 @@ public:
TimestampedList operator=(const TimestampedList &) = delete;
private:
typedef struct {
struct item_s {
hrt_abstime timestamp_us = 0; // 0 signals inactive.
T value;
} item_t;
};
item_t *_list = nullptr;
item_s *_list = nullptr;
int _list_len = 0;
int _current_i = -1;
};