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); } diff --git a/src/protocols/ExternalRadio/ExternalRadio.cpp b/src/protocols/ExternalRadio/ExternalRadio.cpp index 48a7790c..b597f6f1 100644 --- a/src/protocols/ExternalRadio/ExternalRadio.cpp +++ b/src/protocols/ExternalRadio/ExternalRadio.cpp @@ -35,9 +35,7 @@ ExternalRadio& ExternalRadio::operator=(const ExternalRadio& ext) { } ExternalRadio::~ExternalRadio() { - if(this->mod) { - delete this->mod; - } + delete this->mod; } Module* ExternalRadio::getMod() {