fso-frameworkd (0.8.5.1-1) 02_ascii-encode-in-gsm-channel.py.patch

Summary

 framework/subsystems/ogsmd/gsm/channel.py |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

    
download this patch

Patch contents

Use ASCII encoding to Write data to the serial virtual channel
Index: frameworkd/framework/subsystems/ogsmd/gsm/channel.py
===================================================================
--- frameworkd.orig/framework/subsystems/ogsmd/gsm/channel.py	2009-02-02 20:02:28.000000000 +0100
+++ frameworkd/framework/subsystems/ogsmd/gsm/channel.py	2009-02-02 20:09:38.000000000 +0100
@@ -236,7 +236,7 @@
 
     def _lowlevelWrite( self, data ):
         """Called to write data to the port."""
-        self.serial.write( data )
+        self.serial.write( data.encode('ascii') )
 
     def _readyToSend( self, source, condition ):
         """Called, if source is ready to receive data."""