From cf776230a448faf7414f2809e12b95b68ada9014 Mon Sep 17 00:00:00 2001 From: Crsarmv7l <85343771+Crsarmv7l@users.noreply.github.com> Date: Wed, 19 Feb 2025 19:44:01 +0100 Subject: [PATCH] Slightly increase timeout while waiting for MARC state to be ready for TX (#1429) --- src/modules/CC1101/CC1101.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/modules/CC1101/CC1101.cpp b/src/modules/CC1101/CC1101.cpp index e3628a52..13fdf11a 100644 --- a/src/modules/CC1101/CC1101.cpp +++ b/src/modules/CC1101/CC1101.cpp @@ -243,9 +243,10 @@ int16_t CC1101::startTransmit(const uint8_t* data, size_t len, uint8_t addr) { // Check MARCSTATE and wait until ready to tx // 724us is the longest time for calibrate per datasheet + // Needs a bit more time for reliability RadioLibTime_t start = this->mod->hal->micros(); while(SPIgetRegValue(RADIOLIB_CC1101_REG_MARCSTATE, 4, 0) != 0x12) { - if(this->mod->hal->micros() - start > 724) { + if(this->mod->hal->micros() - start > 800) { standby(); return(RADIOLIB_ERR_TX_TIMEOUT); }