From a285ce3f0cba825ac302200d1078a6bcfaf60e27 Mon Sep 17 00:00:00 2001 From: Soeren Apel Date: Sat, 27 Jun 2015 13:31:35 +0200 Subject: [PATCH] Device: Fix bug introduced by b48daed which broke analog channels --- pv/devices/device.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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>( -- 2.30.2