Commit 1e9d7d82 authored by Vlado Altmann's avatar Vlado Altmann
Browse files

resolved discovery issue

parent 9300aa87
......@@ -3237,22 +3237,23 @@ public class DefaultDeviceGPIO extends DeviceCommons implements LocalDevice {
return null;
}
Log.info("Probe received");
if (GpioListener.getInstance().getGpioController() != null)
{
Log.info("Checking buttons");
if (!GpioListener.getInstance().areButtonsHighDelayed(DispatchingProperties.getInstance().getResponseWaitTime() / 1000))
{
Log.info("Buttons was not pressed");
return null;
}
}
sharedLock();
try {
if (deviceMatches(probe.getDeviceTypes(), probe.getServiceTypes(), probe.getScopes(), connectionInfo.getCommunicationManagerId())) {
//MARK
Log.info("Request received");
if (probe.getDeviceTypes() != null && GpioListener.getInstance().getGpioController() != null)
{
Log.info("Checking buttons");
if (!GpioListener.getInstance().areButtonsHighDelayed(DispatchingProperties.getInstance().getResponseWaitTime() / 1000))
{
Log.info("Buttons was not pressed");
return null;
}
}
ProbeMatchesMessage response = new ProbeMatchesMessage();
response.setResponseTo(probe);
response.getHeader().setAppSequence(appSequencer.getNext());
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment