summaryrefslogtreecommitdiffstats
path: root/osc_ctrl.py
diff options
context:
space:
mode:
authoryum <yum.food.vr@gmail.com>2022-11-12 15:02:34 -0800
committeryum <yum.food.vr@gmail.com>2022-11-12 15:02:34 -0800
commit9921697816c9f9473bac54444793f702e54d24a6 (patch)
tree4b786d400405669916b8d6922394771529ecba88 /osc_ctrl.py
parent3b038d23ec7621e0164c1901b416bf77a27d8cf3 (diff)
Fix reset button
Board would lock up if you reset after the first page. osc_ctrl.clear() was assigning the wrong member :) Tweak continuous transcription logic: now we only commit if the transcription remains identical for N seconds.
Diffstat (limited to 'osc_ctrl.py')
-rw-r--r--osc_ctrl.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/osc_ctrl.py b/osc_ctrl.py
index 2e7ef39..be853dc 100644
--- a/osc_ctrl.py
+++ b/osc_ctrl.py
@@ -290,7 +290,7 @@ def clear(client, tx_state):
addr="/avatar/parameters/" + generate_utils.getClearBoardParam()
client.send_message(addr, False)
- tx_state.last_message_encoded = []
+ tx_state.last_msg_encoded = []
if __name__ == "__main__":
parser = argparse.ArgumentParser()