From 1df23a6b36963b249f15780af91b2f92453d34a5 Mon Sep 17 00:00:00 2001 From: Darth Affe Date: Thu, 18 Jan 2024 23:35:19 +0100 Subject: [PATCH] Changed WLED-devices to flush and reduced heartbeat timer --- RGB.NET.Devices.WLED/Generic/WLedRGBDevice.cs | 2 ++ RGB.NET.Devices.WLED/WLedDeviceProvider.cs | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/RGB.NET.Devices.WLED/Generic/WLedRGBDevice.cs b/RGB.NET.Devices.WLED/Generic/WLedRGBDevice.cs index 080b2467..81787323 100644 --- a/RGB.NET.Devices.WLED/Generic/WLedRGBDevice.cs +++ b/RGB.NET.Devices.WLED/Generic/WLedRGBDevice.cs @@ -18,6 +18,8 @@ internal WledRGBDevice(WledRGBDeviceInfo info, string address, IDeviceUpdateTrig : base(info, new WledDeviceUpdateQueue(updateTrigger, address, info.Info.UDPPort, info.Info.Leds.Count)) { InitializeLayout(); + + RequiresFlush = true; } #endregion diff --git a/RGB.NET.Devices.WLED/WLedDeviceProvider.cs b/RGB.NET.Devices.WLED/WLedDeviceProvider.cs index edb53c09..978565e7 100644 --- a/RGB.NET.Devices.WLED/WLedDeviceProvider.cs +++ b/RGB.NET.Devices.WLED/WLedDeviceProvider.cs @@ -16,7 +16,7 @@ public sealed class WledDeviceProvider : AbstractRGBDeviceProvider { #region Constants - private const int HEARTBEAT_TIMER = 1000; + private const int HEARTBEAT_TIMER = 250; #endregion