From 5b3b9ca88e43492a15d37076aec91e20b5f91416 Mon Sep 17 00:00:00 2001 From: rejoe2 Date: Thu, 18 Jan 2024 18:20:18 +0100 Subject: [PATCH] Disable stopping timer for CMT breaks communication when enabled. Maybe there's another solution or some bug? --- src/hms/hmsRadio.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/hms/hmsRadio.h b/src/hms/hmsRadio.h index 443a7d89..aab8a6a7 100644 --- a/src/hms/hmsRadio.h +++ b/src/hms/hmsRadio.h @@ -163,8 +163,8 @@ class CmtRadio : public Radio { uint8_t status = mCmt.getRx(p.packet, &p.len, 28, &p.rssi); if(CMT_SUCCESS == status) mBufCtrl.push(p); - if(p.packet[9] > ALL_FRAMES) // indicates last frame - mRadioWaitTime.stopTimeMonitor(); // we got everything we expected and can exit rx mode... + //if(p.packet[9] > ALL_FRAMES) // indicates last frame + // mRadioWaitTime.stopTimeMonitor(); // we got everything we expected and can exit rx mode... //optionally instead: mRadioWaitTime.startTimeMonitor(DURATION_PAUSE_LASTFR); // let the inverter first get back to rx mode? }