]> sigrok.org Git - libsigrok.git/commitdiff
python: config_get() now returns SR_ERR_NA.
authorUwe Hermann <redacted>
Fri, 19 Apr 2013 09:58:40 +0000 (11:58 +0200)
committerUwe Hermann <redacted>
Fri, 19 Apr 2013 09:58:40 +0000 (11:58 +0200)
bindings/python/sigrok/core/classes.py

index ba52e7830591ba1a3f272af51e4ff15d69e8c915..e51f33a6a35d18f87f7ac8f74f2e76791adb2865 100644 (file)
@@ -152,7 +152,7 @@ class Device(object):
         try:
             check(sr_config_get(self.driver.struct, key, data, self.struct))
         except Error as error:
-            if error.errno == SR_ERR_ARG:
+            if error.errno == SR_ERR_NA:
                 raise NotImplementedError(
                     "Device does not implement %s" % name)
             else: