uORB remove unnecessary priority from each subscriber

This commit is contained in:
Daniel Agar
2018-10-20 10:03:19 -04:00
committed by Lorenz Meier
parent 297c1b777b
commit 526fa9e9dd
2 changed files with 2 additions and 10 deletions
+1 -7
View File
@@ -123,9 +123,6 @@ uORB::DeviceNode::open(cdev::file_t *filp)
/* If there were any previous publications, allow the subscriber to read them */
sd->generation = _generation - (_queue_size < _generation ? _queue_size : _generation);
/* set priority */
sd->set_priority(_priority);
FILE_PRIV(filp) = (void *)sd;
ret = CDev::open(filp);
@@ -215,9 +212,6 @@ uORB::DeviceNode::read(cdev::file_t *filp, char *buffer, size_t buflen)
++sd->generation;
}
/* set priority */
sd->set_priority(_priority);
/*
* Clear the flag that indicates that an update has been reported, as
* we have just collected it.
@@ -362,7 +356,7 @@ uORB::DeviceNode::ioctl(cdev::file_t *filp, int cmd, unsigned long arg)
return PX4_OK;
case ORBIOCGPRIORITY:
*(int *)arg = sd->priority();
*(int *)arg = get_priority();
return PX4_OK;
case ORBIOCSETQUEUESIZE: