From e59ed05c66cf063baae99865bc7c6e2349eb149a Mon Sep 17 00:00:00 2001 From: Gediminas Jakutis Date: Mon, 10 Jun 2019 12:55:18 +0300 Subject: fix off-by-one error. Signed-off-by: Gediminas Jakutis --- src/device/device_network.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/device/device_network.cpp') diff --git a/src/device/device_network.cpp b/src/device/device_network.cpp index bd8467b..9dfe50e 100644 --- a/src/device/device_network.cpp +++ b/src/device/device_network.cpp @@ -91,7 +91,7 @@ IPAddress *discover_client(const int port) do { udp_init_packet_expaddr(bcastip, port); - udp_push(pack.data, pack.cursor + 1); + udp_push(pack.data, pack.cursor); udp_flush(); delay(5); -- cgit v1.2.3