From: Soeren Apel Date: Sat, 27 Jun 2015 11:31:35 +0000 (+0200) Subject: Device: Fix bug introduced by b48daed which broke analog channels X-Git-Tag: pulseview-0.3.0~186 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=a285ce3f0cba825ac302200d1078a6bcfaf60e27;p=pulseview.git Device: Fix bug introduced by b48daed which broke analog channels --- diff --git a/pv/devices/device.cpp b/pv/devices/device.cpp index 4027a1c2..e33d27af 100644 --- a/pv/devices/device.cpp +++ b/pv/devices/device.cpp @@ -73,7 +73,7 @@ T Device::read_config(const ConfigKey *key, const T default_value) const auto iter = keys.find(key); if (iter == keys.end() || - (*iter).second.find(sigrok::GET) != (*iter).second.end()) + (*iter).second.find(sigrok::GET) == (*iter).second.end()) return default_value; return VariantBase::cast_dynamic>(