|
|
@ -267,9 +267,12 @@ uORB::DeviceNode::ioctl(struct file *filp, int cmd, unsigned long arg) |
|
|
|
SubscriberData *sd = filp_to_sd(filp); |
|
|
|
SubscriberData *sd = filp_to_sd(filp); |
|
|
|
|
|
|
|
|
|
|
|
switch (cmd) { |
|
|
|
switch (cmd) { |
|
|
|
case ORBIOCLASTUPDATE: |
|
|
|
case ORBIOCLASTUPDATE: { |
|
|
|
*(hrt_abstime *)arg = _last_update; |
|
|
|
irqstate_t state = irqsave(); |
|
|
|
return OK; |
|
|
|
*(hrt_abstime *)arg = _last_update; |
|
|
|
|
|
|
|
irqrestore(state); |
|
|
|
|
|
|
|
return OK; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
case ORBIOCUPDATED: |
|
|
|
case ORBIOCUPDATED: |
|
|
|
*(bool *)arg = appears_updated(sd); |
|
|
|
*(bool *)arg = appears_updated(sd); |
|
|
|