mirror of
https://github.com/DarthAffe/RGB.NET.git
synced 2025-12-12 17:48:31 +00:00
Small refactoring
This commit is contained in:
parent
2c71196fce
commit
ca8bc67f03
@ -52,7 +52,7 @@ public class E131UpdateQueue : UpdateQueue
|
|||||||
|
|
||||||
protected override void OnUpdate(object? sender, CustomUpdateData customData)
|
protected override void OnUpdate(object? sender, CustomUpdateData customData)
|
||||||
{
|
{
|
||||||
if (customData[CustomUpdateDataIndex.HEARTBEAT] as bool? == true)
|
if (customData[CustomUpdateDataIndex.HEARTBEAT] as bool? ?? false)
|
||||||
Update(Array.Empty<(object key, Color color)>());
|
Update(Array.Empty<(object key, Color color)>());
|
||||||
else
|
else
|
||||||
base.OnUpdate(sender, customData);
|
base.OnUpdate(sender, customData);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user