[SX127x] Fixed RF switch not actuated in continuous Rx mode (#531)

This commit is contained in:
Jan Gromeš 2022-05-30 10:49:55 +02:00 committed by GitHub
parent 3df3b092eb
commit 77c9a295ed
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -403,6 +403,8 @@ int16_t SX127x::startReceive(uint8_t len, uint8_t mode) {
// FSK modem does not distinguish between Rx single and continuous
if(mode == RADIOLIB_SX127X_RXCONTINUOUS) {
// set RF switch (if present)
_mod->setRfSwitchState(HIGH, LOW);
return(setMode(RADIOLIB_SX127X_RX));
}
}