Merge pull request #781 from alistair23/alistair/lora-fix2
Module: Get status from first byte after the command
This commit is contained in:
commit
6622a14726
1 changed files with 1 additions and 1 deletions
|
@ -328,7 +328,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) {
|
||||
state = this->SPIparseStatusCb(buffIn[0]);
|
||||
state = this->SPIparseStatusCb(buffIn[cmdLen]);
|
||||
}
|
||||
|
||||
// copy the data
|
||||
|
|
Loading…
Add table
Reference in a new issue