mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-09-25 03:38:22 +08:00
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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user