Compare commits

...

2 Commits

Author SHA1 Message Date
3758e06fde Fix websocket URL background on dark theme 2026-04-22 00:44:14 -03:00
0ab30cd1a8 server: Send fake status every 500ms 2026-04-22 00:43:55 -03:00
2 changed files with 6 additions and 4 deletions

View File

@@ -93,7 +93,9 @@ class _SettingsDialogState extends State<SettingsDialog> {
padding:
const EdgeInsets.symmetric(horizontal: 10, vertical: 6),
decoration: BoxDecoration(
color: Colors.grey.shade100,
color: Theme.of(context)
.colorScheme
.surfaceContainerHighest,
borderRadius: BorderRadius.circular(6),
),
child: Row(children: [

View File

@@ -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<uint32_t>(tick / 2000);
// Statuses rotate every 500 ms, each offset by one step.
if (tick % 500 == 0) {
const uint32_t phase = static_cast<uint32_t>(tick / 500);
p.set_status1((phase + 0) % 4);
p.set_status2((phase + 1) % 4);
p.set_status3((phase + 2) % 4);