From c53f33f8ecfcbc64e2f0c4b4d19cd3b0ebbe79e0 Mon Sep 17 00:00:00 2001 From: Nic Limper Date: Mon, 11 Sep 2023 20:40:05 +0200 Subject: [PATCH] bugfix calculating expected next checkin --- ESP32_AP-Flasher/src/newproto.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ESP32_AP-Flasher/src/newproto.cpp b/ESP32_AP-Flasher/src/newproto.cpp index 766e6094..77fd025b 100644 --- a/ESP32_AP-Flasher/src/newproto.cpp +++ b/ESP32_AP-Flasher/src/newproto.cpp @@ -182,7 +182,7 @@ bool prepareDataAvail(String& filename, uint8_t dataType, uint8_t dataTypeArgume time_t now; time(&now); - taginfo->pendingIdle = now + nextCheckin * 60 + 60; + taginfo->pendingIdle = nextCheckin * 60 + 60; clearPending(taginfo); taginfo->filename = filename; taginfo->len = filesize; @@ -422,7 +422,7 @@ void processXferTimeout(struct espXferComplete* xfc, bool local) { time(&now); tagRecord* taginfo = tagRecord::findByMAC(xfc->src); if (taginfo != nullptr) { - taginfo->pendingIdle = now + 60; + taginfo->pendingIdle = 60; memset(taginfo->md5pending, 0, 16 * sizeof(uint8_t)); clearPending(taginfo); }