From c89e89aec5fd65911060515bbf24af8a71b0dd97 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Thu, 23 Apr 2015 04:46:42 +0200 Subject: fix some errors MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- src/bus.py | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/src/bus.py b/src/bus.py index 62c0c37..5502500 100644 --- a/src/bus.py +++ b/src/bus.py @@ -134,8 +134,8 @@ class Bus: @param message:str The message to write, may not be longer than 2047 bytes after UTF-8 encoding ''' - from native_bus import bus_write - if bus_write(self.bus, message) == -1: + from native_bus import bus_write_wrapped + if bus_write_wrapped(self.bus, message) == -1: raise self.__oserror() @@ -143,7 +143,6 @@ class Bus: ''' Listen (in a loop, forever) for new message on a bus - @param bus Bus information @param callback Function to call when a message is received, the input parameters will be the read message and `user_data` from the function's [Bus.read] parameter @@ -156,8 +155,8 @@ class Bus: -1: an error has occurred @param user_data See description of `callback` ''' - from native_bus import bus_read - if bus_read(self.bus, callback, user_data) == -1: + from native_bus import bus_read_wrapped + if bus_read_wrapped(self.bus, callback, user_data) == -1: raise self.__oserror() -- cgit v1.2.3-70-g09d2