Bug 108 - Device list not cleared before new sr_driver_scan()
Summary: Device list not cleared before new sr_driver_scan()
Status: RESOLVED FIXED
Alias: None
Product: PulseView
Classification: Unclassified
Component: Other (show other bugs)
Version: unreleased development snapshot
Hardware: All All
: Normal normal
Target Milestone: ---
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks: 45
  Show dependency treegraph
 
Reported: 2013-04-27 18:44 CEST by Bert Vermeulen
Modified: 2013-04-28 00:58 CEST (History)
1 user (show)



Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Bert Vermeulen 2013-04-27 18:44:12 CEST
None of the drivers clear the list of instances they know about automatically on scan anymore, fixing bug 104.

However, that means pulseview needs to clear that list itself when running a scan. Currently when doing File -> Connect to device on a driver that can auto-discover hardware, the device selected with "OK" is added to the list of already found devices in the top toolbar -- so it'll be in there twice.

Pulseview needs to call sr_dev_clear(driver) before doing a scan on that driver.