From 0102b725f60c91ca6d095c2b04de71db6d5b1fda Mon Sep 17 00:00:00 2001 From: yum Date: Mon, 24 Oct 2022 23:08:11 -0700 Subject: Saying the word "clear" clears the board While the board is clearing, you can keep talking, and it will be rendered when the board finishes clearing. * bugfix: STT only beeps when it's out --- osc_ctrl.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'osc_ctrl.py') diff --git a/osc_ctrl.py b/osc_ctrl.py index 4ef238e..4353939 100644 --- a/osc_ctrl.py +++ b/osc_ctrl.py @@ -327,8 +327,8 @@ def sendRawMessage(client, msg): #print("Send cell {}".format(cell)) sendMessageCellDiscrete(client, cell_msg, cell) -def clear(): - sendRawMessage([state.encoding[' ']] * BOARD_ROWS * BOARD_COLS) +def clear(client): + sendRawMessage(client, [state.encoding[' ']] * BOARD_ROWS * BOARD_COLS) if __name__ == "__main__": parser = argparse.ArgumentParser() -- cgit v1.2.3