Skip to content

Commit 528e09d

Browse files
committed
Merge pull request arduino#385 from zaphodus/patch-1
Resend presentation if client connected
2 parents 5be0e2e + ce93db7 commit 528e09d

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

libraries/MySensors/core/MyGatewayTransportEthernet.cpp

+4
Original file line numberDiff line numberDiff line change
@@ -288,6 +288,8 @@ bool gatewayTransportAvailable()
288288
_w5100_spi_en(false);
289289
gatewayTransportSend(buildGw(_msg, I_GATEWAY_READY).set("Gateway startup complete."));
290290
_w5100_spi_en(true);
291+
if (presentation)
292+
presentation();
291293
}
292294
}
293295
bool connected = clients[i].connected();
@@ -318,6 +320,8 @@ bool gatewayTransportAvailable()
318320
debug(PSTR("Eth: connect\n"));
319321
_w5100_spi_en(false);
320322
gatewayTransportSend(buildGw(_msg, I_GATEWAY_READY).set("Gateway startup complete."));
323+
if (presentation)
324+
presentation();
321325
}
322326
}
323327
if (client) {

0 commit comments

Comments
 (0)