]> sigrok.org Git - libsigrok.git/commitdiff
probe_groups: Update Python bindings for API change.
authorMartin Ling <redacted>
Sun, 21 Apr 2013 20:11:32 +0000 (21:11 +0100)
committerUwe Hermann <redacted>
Fri, 8 Nov 2013 00:03:16 +0000 (01:03 +0100)
bindings/python/sigrok/core/classes.py

index f4d2e60e9f40fe2a8e8b7dd4515830e50d33b31b..068fd39408c2429c101b7d28ae171ca8033fdc72 100644 (file)
@@ -151,8 +151,8 @@ class Device(object):
         key = getattr(ConfigKey, name.upper())
         data = new_gvariant_ptr_ptr()
         try:
-            check(sr_config_get(self.driver.struct,
-                key.id, data, self.struct))
+            check(sr_config_get(self.driver.struct, self.struct, None,
+                key, data))
         except Error as error:
             if error.errno == SR_ERR_NA:
                 raise NotImplementedError(
@@ -168,8 +168,7 @@ class Device(object):
         except AttributeError:
             super(Device, self).__setattr__(name, value)
             return
-        check(sr_config_set(self.struct,
-            key.id, python_to_gvariant(value)))
+        check(sr_config_set(self.struct, None, key, python_to_gvariant(value)))
 
     @property
     def vendor(self):