mirror of
https://github.com/DarthAffe/RGB.NET.git
synced 2026-11-11 13:06:24 +00:00
Small refactoring
This commit is contained in:
1 parent
2c71196fce
commit
ca8bc67f03
1 file changed
+1
-1
@@ -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);
|
||||||
|
|||||||
Reference in new issue
Block a user