summaryrefslogtreecommitdiffstats
path: root/osc_ctrl.py
diff options
context:
space:
mode:
authoryum <yum.food.vr@gmail.com>2022-10-15 18:55:27 -0700
committeryum <yum.food.vr@gmail.com>2022-10-15 18:55:52 -0700
commit91d236dcded232a6e1a5d56a9a40e6a1d27abfe4 (patch)
tree3279044b98957a83ac22cdc5fac57aaf72752897 /osc_ctrl.py
parent68db1b25f8f29a487dab0953248e0effdff68567 (diff)
Transcribe.py now pages
Messages longer than a board will automatically write over the top. TODO * Real cell-based message diffing * Cumulative transcription * this would completely mitigate the effects of trim events
Diffstat (limited to 'osc_ctrl.py')
-rw-r--r--osc_ctrl.py6
1 files changed, 0 insertions, 6 deletions
diff --git a/osc_ctrl.py b/osc_ctrl.py
index 0352e6f..d80f055 100644
--- a/osc_ctrl.py
+++ b/osc_ctrl.py
@@ -255,12 +255,6 @@ def sendMessageLazy(client, msg, tx_state):
cell_msg = msg_encoded[cell_begin:cell_end]
last_cell_msg = []
- if cell > 0 and cell % (2 ** generate_utils.INDEX_BITS) == 0:
- # TODO(yum_food) support messages longer than one page
- print("Page limit exceeded, no support yet")
- tx_state.last_msg_encoded = msg_encoded[0:cell_begin]
- return True
-
# Skip cells we've already sent. This makes the board much more
# responsive.
if cell_end < len(tx_state.last_msg_encoded):