[MOD] Added debug message when BUSY pin times out
This commit is contained in:
parent
cc8c8f2eed
commit
a22a4df88f
1 changed files with 1 additions and 0 deletions
|
@ -251,6 +251,7 @@ int16_t Module::SPItransferStream(uint8_t* cmd, uint8_t cmdLen, bool write, uint
|
|||
this->hal->yield();
|
||||
if(this->hal->millis() - start >= timeout) {
|
||||
this->hal->digitalWrite(this->csPin, this->hal->GpioLevelLow);
|
||||
RADIOLIB_DEBUG_PRINTLN("Timed out waiting for GPIO pin, is it connected?");
|
||||
return(RADIOLIB_ERR_SPI_CMD_TIMEOUT);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue