probe_groups: Update Python bindings for API change.
This commit is contained in:
parent
5daed4bc6d
commit
54e7a3d0d7
|
@ -151,8 +151,8 @@ class Device(object):
|
||||||
key = getattr(ConfigKey, name.upper())
|
key = getattr(ConfigKey, name.upper())
|
||||||
data = new_gvariant_ptr_ptr()
|
data = new_gvariant_ptr_ptr()
|
||||||
try:
|
try:
|
||||||
check(sr_config_get(self.driver.struct,
|
check(sr_config_get(self.driver.struct, self.struct, None,
|
||||||
key.id, data, self.struct))
|
key, data))
|
||||||
except Error as error:
|
except Error as error:
|
||||||
if error.errno == SR_ERR_NA:
|
if error.errno == SR_ERR_NA:
|
||||||
raise NotImplementedError(
|
raise NotImplementedError(
|
||||||
|
@ -168,8 +168,7 @@ class Device(object):
|
||||||
except AttributeError:
|
except AttributeError:
|
||||||
super(Device, self).__setattr__(name, value)
|
super(Device, self).__setattr__(name, value)
|
||||||
return
|
return
|
||||||
check(sr_config_set(self.struct,
|
check(sr_config_set(self.struct, None, key, python_to_gvariant(value)))
|
||||||
key.id, python_to_gvariant(value)))
|
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def vendor(self):
|
def vendor(self):
|
||||||
|
|
Loading…
Reference in New Issue