Skip to content

Commit c4dd25e

Browse files
Kimmo Vaisanenkivaisan
authored andcommitted
Fix correct pin check for rxctl
Fixes issue #20
1 parent 4982a15 commit c4dd25e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

SX1272/SX1272_LoRaRadio.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1626,7 +1626,7 @@ void SX1272_LoRaRadio::set_low_power_mode(bool status)
16261626
_txctl = 0;
16271627
}
16281628

1629-
if (_rf_ctrls.txctl != NC) {
1629+
if (_rf_ctrls.rxctl != NC) {
16301630
_rxctl = 0;
16311631
}
16321632

SX1276/SX1276_LoRaRadio.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1653,7 +1653,7 @@ void SX1276_LoRaRadio::set_low_power_mode()
16531653
_txctl = 0;
16541654
}
16551655

1656-
if (_rf_ctrls.txctl != NC) {
1656+
if (_rf_ctrls.rxctl != NC) {
16571657
_rxctl = 0;
16581658
}
16591659

0 commit comments

Comments
 (0)