fix: uORB topics lost messages when publications overflow

This commit is contained in:
FengShun
2020-10-19 08:52:55 +02:00
committed by Beat Küng
parent b4a22437ab
commit d19b54481a
19 changed files with 274 additions and 35 deletions
+1 -1
View File
@@ -160,7 +160,7 @@ public:
{
// schedule immediately if updated (queue depth or subscription interval)
if ((_required_updates == 0)
|| (_subscription.get_node()->published_message_count() >= (_subscription.get_last_generation() + _required_updates))) {
|| (_subscription.get_node()->updates_available(_subscription.get_last_generation()) >= _required_updates)) {
if (updated()) {
_work_item->ScheduleNow();
}