Skip to content

Commit

Permalink
fix hotplug property not being used for rgbnet devices
Browse files Browse the repository at this point in the history
  • Loading branch information
Aytackydln committed Jun 1, 2024
1 parent ecf217f commit afdec64
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -69,10 +69,8 @@ protected override async Task<bool> DoInitialize(CancellationToken cancellationT
timeWatch.Start();

Provider.Initialize(RGBDeviceType.All, true);



if (DeviceList.Count == 0)
if (!HotplugEnabled() && DeviceList.Count == 0)
{
await Task.Delay(1500, cancellationToken);
const string message = "No device detected yet!";
Expand Down

0 comments on commit afdec64

Please sign in to comment.