(shared_ptr<sigrok::Device> device, shared_ptr<Packet> packet) {
data_feed_in(device, packet);
});
- update_signals(device_);
+ update_signals();
decode_traces_.clear();
capture_state_changed(state);
}
-void Session::update_signals(shared_ptr<devices::Device> device)
+void Session::update_signals()
{
- assert(device);
+ assert(device_);
assert(capture_state_ == Stopped);
- const shared_ptr<sigrok::Device> sr_dev = device->device();
+ const shared_ptr<sigrok::Device> sr_dev = device_->device();
if (!sr_dev) {
signals_.clear();
logic_data_.reset();
case SR_CHANNEL_LOGIC:
signal = shared_ptr<view::Signal>(
new view::LogicSignal(*this,
- device, channel,
+ device_, channel,
logic_data_));
break;
private:
void set_capture_state(capture_state state);
- void update_signals(std::shared_ptr<devices::Device> device);
+ void update_signals();
std::shared_ptr<view::Signal> signal_from_channel(
std::shared_ptr<sigrok::Channel> channel) const;