[MOD] Skip SPI status parsing for single-byte commands
This commit is contained in:
parent
bfe2c0829a
commit
8c63f93820
1 changed files with 1 additions and 1 deletions
|
@ -331,7 +331,7 @@ int16_t Module::SPItransferStream(uint8_t* cmd, uint8_t cmdLen, bool write, uint
|
|||
|
||||
// parse status
|
||||
int16_t state = RADIOLIB_ERR_NONE;
|
||||
if(this->SPIparseStatusCb != nullptr) {
|
||||
if((this->SPIparseStatusCb != nullptr) && (numBytes > 0)) {
|
||||
state = this->SPIparseStatusCb(buffIn[cmdLen]);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue