]> sigrok.org Git - pulseview.git/blobdiff - pv/devices/hardwaredevice.hpp
Fix #602 by keeping track of device state internally
[pulseview.git] / pv / devices / hardwaredevice.hpp
index 9f052d7e85efa5a5a35b494b201dd310354631af..df11ed25783caa8221fb269a6b0b60fff3554eec 100644 (file)
@@ -57,6 +57,7 @@ public:
 
 private:
        const std::shared_ptr<sigrok::Context> context_;
+       bool device_open_;
 };
 
 } // namespace devices