summaryrefslogtreecommitdiffstats
path: root/src/device/device_network.cpp
diff options
context:
space:
mode:
authorGravatar Gediminas Jakutis <gediminas@varciai.lt> 2019-06-10 12:55:18 +0300
committerGravatar Gediminas Jakutis <gediminas@varciai.lt> 2019-06-10 12:55:18 +0300
commite59ed05c66cf063baae99865bc7c6e2349eb149a (patch)
treef5ab80e83157fa4e39f20d12470f39f96d9b11c2 /src/device/device_network.cpp
parent7c5042af3c606081d3f4b917ef667f6ed05780a8 (diff)
downloadusurpation-e59ed05c66cf063baae99865bc7c6e2349eb149a.tar.gz
usurpation-e59ed05c66cf063baae99865bc7c6e2349eb149a.tar.bz2
usurpation-e59ed05c66cf063baae99865bc7c6e2349eb149a.zip
fix off-by-one error.
Signed-off-by: Gediminas Jakutis <gediminas@varciai.lt>
Diffstat (limited to 'src/device/device_network.cpp')
-rw-r--r--src/device/device_network.cpp2
1 files changed, 1 insertions, 1 deletions
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);