Verify SX126x status reads against the current RadioLib pin
This commit is contained in:
1 parent
d5cc73c43d
commit
41564bf6b7
2 files changed
+91
-21
No files matched your search
@@ -3,7 +3,8 @@
|
||||
|
||||
// -1: no reliable observation, 0: confirmed non-RX mode, 1: RX.
|
||||
// GetStatus is C0 followed by one response byte (Semtech sx126x driver).
|
||||
// RadioLib's pinned getStatus() requests zero payload bytes and returns zero.
|
||||
// RadioLib 7.8.1 also reads that response directly. This probe additionally
|
||||
// avoids waiting on BUSY, preserves the SPI layout and checks transport errors.
|
||||
template <typename Radio>
|
||||
inline int8_t sx126xReceiveMode(Radio* radio) {
|
||||
Module* module = radio->getMod();
|
||||
|
||||
Reference in new issue
Block a user