summaryrefslogtreecommitdiffstats
path: root/src/device
diff options
context:
space:
mode:
Diffstat (limited to 'src/device')
-rw-r--r--src/device/device_network.cpp2
-rw-r--r--src/device/main.ino2
2 files changed, 2 insertions, 2 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);
diff --git a/src/device/main.ino b/src/device/main.ino
index 49cb0e7..674db85 100644
--- a/src/device/main.ino
+++ b/src/device/main.ino
@@ -104,7 +104,7 @@ void loop(void)
if (!progstate.hbcounter) {
udp_init_packet(com_port);
- udp_push(progstate.heartbeat.data, progstate.heartbeat.cursor + 1);
+ udp_push(progstate.heartbeat.data, progstate.heartbeat.cursor);
udp_flush();
progstate.hbcounter = seconds(30);
}