mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-05-31 02:16:53 +08:00
CDev delete unused pub_blocked
This commit is contained in:
@@ -616,7 +616,7 @@ BMA180::measure()
|
|||||||
poll_notify(POLLIN);
|
poll_notify(POLLIN);
|
||||||
|
|
||||||
/* publish for subscribers */
|
/* publish for subscribers */
|
||||||
if (_accel_topic != nullptr && !(_pub_blocked)) {
|
if (_accel_topic != nullptr) {
|
||||||
orb_publish(ORB_ID(sensor_accel), _accel_topic, &report);
|
orb_publish(ORB_ID(sensor_accel), _accel_topic, &report);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -86,12 +86,6 @@ public:
|
|||||||
*/
|
*/
|
||||||
virtual int ioctl(file_t *filep, int cmd, unsigned long arg);
|
virtual int ioctl(file_t *filep, int cmd, unsigned long arg);
|
||||||
|
|
||||||
protected:
|
|
||||||
|
|
||||||
bool _pub_blocked{false}; /**< true if publishing should be blocked */
|
|
||||||
|
|
||||||
private:
|
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
} // namespace device
|
} // namespace device
|
||||||
|
|||||||
Reference in New Issue
Block a user