From: Martin Ling Date: Sun, 21 Apr 2013 20:11:32 +0000 (+0100) Subject: probe_groups: Update Python bindings for API change. X-Git-Tag: libsigrok-0.3.0~586 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=54e7a3d0d7bd80c993db9ff37b4a38ed38af7b0a;p=libsigrok.git probe_groups: Update Python bindings for API change. --- diff --git a/bindings/python/sigrok/core/classes.py b/bindings/python/sigrok/core/classes.py index f4d2e60e..068fd394 100644 --- a/bindings/python/sigrok/core/classes.py +++ b/bindings/python/sigrok/core/classes.py @@ -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):