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 11:39:01 +02:00
committed by Beat Küng
parent 5a370bf575
commit e39e3b3418
4 changed files with 7 additions and 8 deletions

View File

@@ -55,7 +55,7 @@ void send(EventType &event)
// - we need to ensure ordering of the sequence numbers: the sequence we set here
// has to be the one published next.
pthread_mutex_lock(&publish_event_mutex);
event.sequence = ++event_sequence; // Set the sequence here so we're able to detect uORB queue overflows
event.event_sequence = ++event_sequence; // Set the sequence here so we're able to detect uORB queue overflows
if (orb_event_pub != nullptr) {
orb_publish(ORB_ID(event), orb_event_pub, &event);