]> sigrok.org Git - pulseview.git/commitdiff
Device: Fix bug introduced by b48daed which broke analog channels
authorSoeren Apel <redacted>
Sat, 27 Jun 2015 11:31:35 +0000 (13:31 +0200)
committerSoeren Apel <redacted>
Sat, 27 Jun 2015 11:31:35 +0000 (13:31 +0200)
pv/devices/device.cpp

index 4027a1c2d820a35ba248e312f3d066af789df620..e33d27af08d1013da9c40c4f6440cf444cdd6922 100644 (file)
@@ -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<Variant<T>>(