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/main.ino | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/device/main.ino') 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); } -- cgit v1.2.3