X-Git-Url: https://sigrok.org/gitweb/?p=pulseview.git;a=blobdiff_plain;f=pv%2Fdevices%2Fdevice.cpp;h=d7a78afae546c972af6cbf0a012364118bab075a;hp=e33d27af08d1013da9c40c4f6440cf444cdd6922;hb=05b2276928535ae1f8e16b6f9c89802d8d261fee;hpb=7c6cbdda4d7beaaf41c752826091b407a203df51 diff --git a/pv/devices/device.cpp b/pv/devices/device.cpp index e33d27af..d7a78afa 100644 --- a/pv/devices/device.cpp +++ b/pv/devices/device.cpp @@ -76,7 +76,7 @@ T Device::read_config(const ConfigKey *key, const T default_value) (*iter).second.find(sigrok::GET) == (*iter).second.end()) return default_value; - return VariantBase::cast_dynamic>( + return VariantBase::cast_dynamic>( device_->config_get(ConfigKey::SAMPLERATE)).get(); }