From 0e77b7cab31186b35d461e7d4ad3ce8a577857ee Mon Sep 17 00:00:00 2001 From: Uwe Hermann Date: Thu, 25 Apr 2013 00:15:49 +0200 Subject: [PATCH] python: Add Session.open_device(). --- bindings/python/sigrok/core/classes.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/bindings/python/sigrok/core/classes.py b/bindings/python/sigrok/core/classes.py index da05dd12..f4d2e60e 100644 --- a/bindings/python/sigrok/core/classes.py +++ b/bindings/python/sigrok/core/classes.py @@ -197,6 +197,9 @@ class Session(object): def add_device(self, device): check(sr_session_dev_add(device.struct)) + def open_device(self, device): + check(sr_dev_open(device.struct)) + def add_callback(self, callback): wrapper = partial(callback_wrapper, self, callback) check(sr_session_datafeed_python_callback_add(wrapper))