summaryrefslogtreecommitdiff
path: root/utilities/blinkenrocket.py
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2016-02-26 23:57:52 +0100
committerDaniel Friesel <derf@finalrewind.org>2016-02-26 23:57:52 +0100
commit8df1d910e4701b80bf00d4da099d31315c326e4e (patch)
tree7577a602d212cbfc4c365b747b1cdfc6acd32c90 /utilities/blinkenrocket.py
parent2d556b007abb9da17a044e94a5a544aabdf2fda0 (diff)
Disable hamming state reset logic (contains a -really- stuid bug)
Diffstat (limited to 'utilities/blinkenrocket.py')
-rw-r--r--utilities/blinkenrocket.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/utilities/blinkenrocket.py b/utilities/blinkenrocket.py
index c027dd5..00787fa 100644
--- a/utilities/blinkenrocket.py
+++ b/utilities/blinkenrocket.py
@@ -90,9 +90,8 @@ class modem:
for byte in self.data:
sound += self.modemcode(ord(byte))
self.cnt += 1
- if self.cnt == 10:
- sound += self.silence(256) # TODO determine required amount of silence
- sound += self.generateSyncSignal(2)
+ if self.cnt == 9: # ! do not send sync inside (byte1 byte2 parity) triples
+ sound += self.generateSyncSignal(4)
self.cnt = 0
# add some sync signals in the end
sound += self.generateSyncSignal(4)