diff options
author | 2019-06-10 12:55:18 +0300 | |
---|---|---|
committer | 2019-06-10 12:55:18 +0300 | |
commit | e59ed05c66cf063baae99865bc7c6e2349eb149a (patch) | |
tree | f5ab80e83157fa4e39f20d12470f39f96d9b11c2 /src/device/device_network.cpp | |
parent | 7c5042af3c606081d3f4b917ef667f6ed05780a8 (diff) | |
download | usurpation-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.cpp | 2 |
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); |