diff --git a/scripts/led-matrix-viz.py b/scripts/led-matrix-viz.py index 89ef3e6..b76f445 100755 --- a/scripts/led-matrix-viz.py +++ b/scripts/led-matrix-viz.py @@ -135,7 +135,7 @@ def main(): params = render(active_notes) if params != last_sent_params: msg_id = (msg_id + 1) % 65535 - pending_bytes = packer.pack([0, msg_id, "draw_frame", params]) + pending_bytes = packer.pack([2, msg_id, "draw_frame", params]) last_sent_params = params # Try to send pending frame — no POLLOUT dependency @@ -155,7 +155,7 @@ def main(): fps_sample_frames += 1 if last_sent_params is not None and pending_bytes is None: msg_id = (msg_id + 1) % 65535 - refresh_bytes = packer.pack([0, msg_id, "draw_frame", last_sent_params]) + refresh_bytes = packer.pack([2, msg_id, "draw_frame", last_sent_params]) router, ok = try_send(router, refresh_bytes) if ok: frames_sent += 1