mirror of
https://github.com/bwssytems/ha-bridge.git
synced 2025-12-19 00:20:26 +00:00
Fixed broadlink discover loop
This commit is contained in:
2
pom.xml
2
pom.xml
@@ -5,7 +5,7 @@
|
|||||||
|
|
||||||
<groupId>com.bwssystems.HABridge</groupId>
|
<groupId>com.bwssystems.HABridge</groupId>
|
||||||
<artifactId>ha-bridge</artifactId>
|
<artifactId>ha-bridge</artifactId>
|
||||||
<version>5.2.0RC11</version>
|
<version>5.2.0RC12</version>
|
||||||
<packaging>jar</packaging>
|
<packaging>jar</packaging>
|
||||||
|
|
||||||
<name>HA Bridge</name>
|
<name>HA Bridge</name>
|
||||||
|
|||||||
@@ -87,6 +87,7 @@ public class BroadlinkHome implements Home {
|
|||||||
log.debug("Ignoring A1 Device - host: " + clients[i].getHost() + ", device Type: " + clients[i].getDeviceDescription() + ", mac: " + (clients[i].getMac() == null ? "no Mac in client" : clients[i].getMac().getMacString()));
|
log.debug("Ignoring A1 Device - host: " + clients[i].getHost() + ", device Type: " + clients[i].getDeviceDescription() + ", mac: " + (clients[i].getMac() == null ? "no Mac in client" : clients[i].getMac().getMacString()));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
aDiscoverPort = 0;
|
||||||
} catch (BindException e) {
|
} catch (BindException e) {
|
||||||
log.warn("Could not discover Broadlinks, Port in use, increasing by 11");
|
log.warn("Could not discover Broadlinks, Port in use, increasing by 11");
|
||||||
aDiscoverPort += 11;
|
aDiscoverPort += 11;
|
||||||
@@ -96,7 +97,7 @@ public class BroadlinkHome implements Home {
|
|||||||
log.warn("Could not discover Broadlinks, with IO Exception", e);
|
log.warn("Could not discover Broadlinks, with IO Exception", e);
|
||||||
broadlinkMap = null;
|
broadlinkMap = null;
|
||||||
validBroadlink = false;
|
validBroadlink = false;
|
||||||
return this;
|
aDiscoverPort = 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user