From 0ab30cd1a8348d08b3e5daa7d371969768cb3073 Mon Sep 17 00:00:00 2001 From: Gabriel Lima Date: Wed, 22 Apr 2026 00:43:55 -0300 Subject: [PATCH] server: Send fake status every 500ms --- server/main.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/server/main.cpp b/server/main.cpp index 9964c01..c975cb2 100644 --- a/server/main.cpp +++ b/server/main.cpp @@ -364,9 +364,9 @@ void fill_data(pb::DataPacket& p, int64_t now_us, uint64_t tick, if (gates[14].emitting) p.set_ch15(sine(15)); if (gates[15].emitting) p.set_ch16(sine(16)); - // Statuses rotate once every 2 s, each offset by one step. - if (tick % 2000 == 0) { - const uint32_t phase = static_cast(tick / 2000); + // Statuses rotate every 500 ms, each offset by one step. + if (tick % 500 == 0) { + const uint32_t phase = static_cast(tick / 500); p.set_status1((phase + 0) % 4); p.set_status2((phase + 1) % 4); p.set_status3((phase + 2) % 4);