Merge pull request #385 from zaphodus/patch-1
Resend presentation if client connected
This commit is contained in:
@@ -288,6 +288,8 @@ bool gatewayTransportAvailable()
|
|||||||
_w5100_spi_en(false);
|
_w5100_spi_en(false);
|
||||||
gatewayTransportSend(buildGw(_msg, I_GATEWAY_READY).set("Gateway startup complete."));
|
gatewayTransportSend(buildGw(_msg, I_GATEWAY_READY).set("Gateway startup complete."));
|
||||||
_w5100_spi_en(true);
|
_w5100_spi_en(true);
|
||||||
|
if (presentation)
|
||||||
|
presentation();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
bool connected = clients[i].connected();
|
bool connected = clients[i].connected();
|
||||||
@@ -318,6 +320,8 @@ bool gatewayTransportAvailable()
|
|||||||
debug(PSTR("Eth: connect\n"));
|
debug(PSTR("Eth: connect\n"));
|
||||||
_w5100_spi_en(false);
|
_w5100_spi_en(false);
|
||||||
gatewayTransportSend(buildGw(_msg, I_GATEWAY_READY).set("Gateway startup complete."));
|
gatewayTransportSend(buildGw(_msg, I_GATEWAY_READY).set("Gateway startup complete."));
|
||||||
|
if (presentation)
|
||||||
|
presentation();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (client) {
|
if (client) {
|
||||||
|
|||||||
Reference in New Issue
Block a user