[SX127x] Fixed software timeout logic
This commit is contained in:
parent
cb5fd16710
commit
e1d4c2094b
1 changed files with 1 additions and 1 deletions
|
@ -220,7 +220,7 @@ int16_t SX127x::receive(uint8_t* data, size_t len) {
|
|||
while(!_mod->digitalRead(_mod->getIrq())) {
|
||||
_mod->yield();
|
||||
|
||||
if(_mod->getGpio() != RADIOLIB_NC) {
|
||||
if(_mod->getGpio() == RADIOLIB_NC) {
|
||||
// no GPIO pin provided, use software timeout
|
||||
if(_mod->micros() - start > timeout) {
|
||||
clearIRQFlags();
|
||||
|
|
Loading…
Add table
Reference in a new issue