driver for sx1280
Dependents: alarm_slave_extended_SX1280 alarm_master_extended_Vance_SX1280
Diff: sx1280.cpp
- Revision:
- 4:ac55132283cb
- Parent:
- 3:54612373bec6
- Child:
- 5:aba2d8b29702
diff -r 54612373bec6 -r ac55132283cb sx1280.cpp --- a/sx1280.cpp Mon Jul 16 09:37:43 2018 -0700 +++ b/sx1280.cpp Wed Jul 18 18:07:29 2018 -0700 @@ -344,9 +344,12 @@ ReadBuffer(len, buf[2]); - if (pktType == PACKET_TYPE_LORA || pktType == PACKET_TYPE_RANGING) + if (pktType == PACKET_TYPE_LORA || pktType == PACKET_TYPE_RANGING) { slen = 3; - else + pktStatus.buf[3] = 0; + pktStatus.buf[4] = 0; + pktStatus.buf[5] = 0; + } else slen = 6; xfer(OPCODE_GET_PACKET_STATUS, 0, slen, pktStatus.buf);