Skip to content

Commit

Permalink
CDev delete unused pub_blocked
Browse files Browse the repository at this point in the history
  • Loading branch information
dagar committed Apr 1, 2020
1 parent b3fe235 commit 04bf9af
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 7 deletions.
2 changes: 1 addition & 1 deletion src/drivers/imu/bma180/bma180.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -616,7 +616,7 @@ BMA180::measure()
poll_notify(POLLIN);

/* publish for subscribers */
if (_accel_topic != nullptr && !(_pub_blocked)) {
if (_accel_topic != nullptr) {
orb_publish(ORB_ID(sensor_accel), _accel_topic, &report);
}

Expand Down
6 changes: 0 additions & 6 deletions src/lib/drivers/device/CDev.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -86,12 +86,6 @@ class __EXPORT CDev : public Device, public cdev::CDev
*/
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
Expand Down

0 comments on commit 04bf9af

Please sign in to comment.