kopia lustrzana https://github.com/jgromes/RadioLib
[SX127x] Fixed software timeout logic
rodzic
cb5fd16710
commit
e1d4c2094b
|
@ -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();
|
||||
|
|
Ładowanie…
Reference in New Issue