Merge branch 'master' of https://github.com/jgromes/RadioLib
This commit is contained in:
commit
b203323ff9
2 changed files with 3 additions and 4 deletions
|
@ -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
|
// Check MARCSTATE and wait until ready to tx
|
||||||
// 724us is the longest time for calibrate per datasheet
|
// 724us is the longest time for calibrate per datasheet
|
||||||
|
// Needs a bit more time for reliability
|
||||||
RadioLibTime_t start = this->mod->hal->micros();
|
RadioLibTime_t start = this->mod->hal->micros();
|
||||||
while(SPIgetRegValue(RADIOLIB_CC1101_REG_MARCSTATE, 4, 0) != 0x12) {
|
while(SPIgetRegValue(RADIOLIB_CC1101_REG_MARCSTATE, 4, 0) != 0x12) {
|
||||||
if(this->mod->hal->micros() - start > 724) {
|
if(this->mod->hal->micros() - start > 800) {
|
||||||
standby();
|
standby();
|
||||||
return(RADIOLIB_ERR_TX_TIMEOUT);
|
return(RADIOLIB_ERR_TX_TIMEOUT);
|
||||||
}
|
}
|
||||||
|
|
|
@ -35,9 +35,7 @@ ExternalRadio& ExternalRadio::operator=(const ExternalRadio& ext) {
|
||||||
}
|
}
|
||||||
|
|
||||||
ExternalRadio::~ExternalRadio() {
|
ExternalRadio::~ExternalRadio() {
|
||||||
if(this->mod) {
|
|
||||||
delete this->mod;
|
delete this->mod;
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
Module* ExternalRadio::getMod() {
|
Module* ExternalRadio::getMod() {
|
||||||
|
|
Loading…
Add table
Reference in a new issue