From 04bf9afd1b4648254fa4be6a17e6fcfd53db0d08 Mon Sep 17 00:00:00 2001 From: Daniel Agar Date: Mon, 30 Mar 2020 11:44:27 -0400 Subject: [PATCH] CDev delete unused pub_blocked --- src/drivers/imu/bma180/bma180.cpp | 2 +- src/lib/drivers/device/CDev.hpp | 6 ------ 2 files changed, 1 insertion(+), 7 deletions(-) diff --git a/src/drivers/imu/bma180/bma180.cpp b/src/drivers/imu/bma180/bma180.cpp index e075ce1cd8..39cbeb8240 100644 --- a/src/drivers/imu/bma180/bma180.cpp +++ b/src/drivers/imu/bma180/bma180.cpp @@ -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); } diff --git a/src/lib/drivers/device/CDev.hpp b/src/lib/drivers/device/CDev.hpp index 415afbd1e8..743e2b9fc6 100644 --- a/src/lib/drivers/device/CDev.hpp +++ b/src/lib/drivers/device/CDev.hpp @@ -86,12 +86,6 @@ public: */ 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