summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastian Muszytowski <sebastian@muszytowski.net>2016-02-12 20:05:19 +0100
committerSebastian Muszytowski <sebastian@muszytowski.net>2016-02-12 20:05:19 +0100
commite024208899abd6adb52f016c96e4c730ea2d7001 (patch)
tree4832f9b504ece1736b1344a988d02d060d802df7
parent69aaeb6af4d21ddffcce34ccc45691ec42010ed6 (diff)
fixed ord -> char
-rw-r--r--utilities/blinkenrocket.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/utilities/blinkenrocket.py b/utilities/blinkenrocket.py
index b1ce153..26d94fb 100644
--- a/utilities/blinkenrocket.py
+++ b/utilities/blinkenrocket.py
@@ -77,7 +77,7 @@ class modem:
tmpdata = []
# for uneven length data, we have to append a null byte
if not len(self.data) % 2 == 0:
- self.data.append('0x00')
+ self.data.append(chr(0))
# insert the parity information every two bytes, sorry for the heavy casting
for index in range(0, len(self.data), 2):
tmpdata.extend(self.data[index:index+2])
@@ -199,7 +199,7 @@ class blinkenrocket():
if __name__ == '__main__':
- m = modem(parity=False)
+ m = modem(parity=True)
#print list(open(sys.argv[1]).read())
m.setData(list(open(sys.argv[1]).read()))
m.saveAudio(sys.argv[2])