Merge pull request #781 from alistair23/alistair/lora-fix2

Module: Get status from first byte after the command
This commit is contained in:
Jan Gromeš 2023-06-28 17:24:14 +02:00 committed by GitHub
commit 6622a14726
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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