Skip to content

Commit

Permalink
Update YeeLightDevice.cs
Browse files Browse the repository at this point in the history
  • Loading branch information
snake-4 committed May 17, 2020
1 parent 378b7e4 commit c0a06d1
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ public void Connect(IPAddress lightIP, DoWorkEventArgs token = null)
//Auto discover a device if the IP is 0.0.0.0 and auto-discovery is enabled
if (lightIP.Equals(IPAddress.Parse("0.0.0.0")) && default_registry.GetVariable<bool>($"{devicename}_auto_discovery"))
{
var devices = DeviceLocator.DiscoverDevices();
var devices = DeviceLocator.DiscoverDevices(10000, 2);
if (devices.Any())
{
light = devices.First();
Expand Down

0 comments on commit c0a06d1

Please sign in to comment.