From 98ba3b8a680020d25e48bc76c00857fe98b50335 Mon Sep 17 00:00:00 2001 From: lumapu Date: Sun, 26 Mar 2023 13:35:25 +0200 Subject: [PATCH] fix communication --- src/hms/hmsPayload.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/hms/hmsPayload.h b/src/hms/hmsPayload.h index ec2c492c..6ae2a42a 100644 --- a/src/hms/hmsPayload.h +++ b/src/hms/hmsPayload.h @@ -143,7 +143,7 @@ class HmsPayload { record_t<> *rec = iv->getRecordStruct(RealTimeRunData_Debug); DPRINT(DBG_INFO, "LastRx: "); DBGPRINTLN(String(rec->ts)); - if(((rec->ts + HMS_TIMEOUT_MS) < millis()) && (mIvCmd56Cnt[iv->id] < 3)) { + if(((rec->ts + HMS_TIMEOUT_MS) < *mTimestamp) && (mIvCmd56Cnt[iv->id] < 3)) { //mRadio->switchFrequency(&iv->radioId.u64, 863000, WORK_FREQ_KHZ); mRadio->switchFrequency(&iv->radioId.u64, HOY_BOOT_FREQ_KHZ, WORK_FREQ_KHZ); mIvCmd56Cnt[iv->id]++;