]> sigrok.org Git - libsigrok.git/commitdiff
python: sr_config's value field is called 'data'.
authorUwe Hermann <redacted>
Wed, 24 Apr 2013 21:43:56 +0000 (23:43 +0200)
committerUwe Hermann <redacted>
Wed, 24 Apr 2013 21:43:56 +0000 (23:43 +0200)
bindings/python/sigrok/core/classes.py

index e490b34db22d12242b7951f0f828feb498ff75cf..da05dd12ef00a35de0194fb22e00ef02f03142d4 100644 (file)
@@ -124,7 +124,7 @@ class Driver(object):
             key = getattr(ConfigKey, name.upper())
             src = sr_config()
             src.key = key.id
-            src.value = python_to_gvariant(value)
+            src.data = python_to_gvariant(value)
             options.append(src.this)
         option_list = python_to_gslist(options)
         device_list = sr_driver_scan(self.struct, option_list)