events interface: chance uORB 'sequence' to 'event_sequence'

The reason is that sequence is an IDL reserved keyword, which results on failure when parsing with FastRTPSGen.
This commit is contained in:
TSC21
2021-07-09 13:24:13 +02:00
committed by Beat Küng
parent 5a370bf575
commit e39e3b3418
4 changed files with 7 additions and 8 deletions
+1 -1
View File
@@ -2473,7 +2473,7 @@ Mavlink::task_main(int argc, char *argv[])
events::Event e;
e.id = orb_event.id;
e.timestamp_ms = orb_event.timestamp / 1000;
e.sequence = orb_event.sequence - event_sequence_offset;
e.sequence = orb_event.event_sequence - event_sequence_offset;
e.log_levels = orb_event.log_levels;
static_assert(sizeof(e.arguments) == sizeof(orb_event.arguments),
"uorb message event: arguments size mismatch");