X-Git-Url: http://git.code-monkey.de/?a=blobdiff_plain;f=pv%2Fdevicemanager.cpp;h=ac6ce6fb433da3fa29eefa9ba551c043c70f63b5;hb=941e22a645e89e7253f0faeb63b74ee97201dd91;hp=58f507c92fae06c2cd2b84dfce474a5dfc5638de;hpb=bc9177b394e33bfec1f3fc85fb09c2f74c1c7de3;p=pulseview.git diff --git a/pv/devicemanager.cpp b/pv/devicemanager.cpp index 58f507c..ac6ce6f 100644 --- a/pv/devicemanager.cpp +++ b/pv/devicemanager.cpp @@ -101,6 +101,18 @@ DeviceManager::driver_scan( assert(driver); + /* + * We currently only support devices that can deliver samples at + * a fixed samplerate (i.e. oscilloscopes and logic analysers). + * + * @todo Add support for non-monotonic devices (DMMs, sensors, etc). + */ + const auto keys = driver->config_keys(); + bool supported_device = keys.count(ConfigKey::LOGIC_ANALYZER) | + keys.count(ConfigKey::OSCILLOSCOPE); + if (!supported_device) + return driver_devices; + // Remove any device instances from this driver from the device // list. They will not be valid after the scan. devices_.remove_if([&](shared_ptr device) {