Closed mattbrown015 closed 6 years ago
I've spotted a possible typo in SX1272_LoRaRadio::set_low_power_mode and SX1276_LoRaRadio::set_low_power_mode.
SX1272_LoRaRadio::set_low_power_mode
SX1276_LoRaRadio::set_low_power_mode
I was just perusing and noticed the handling of rxctl looked a bit asymmetric. I've no real idea about what's going so I could well be wrong!
rxctl
void SX1272_LoRaRadio::set_low_power_mode(bool status) { ... if (_rf_ctrls.txctl != NC) { _txctl = 0; } if (_rf_ctrls.txctl != NC) { _rxctl = 0; } }
Looks to me like _rf_ctrls.txctl is repeated and the second one should be _rf_ctrls.rxctl.
_rf_ctrls.txctl
_rf_ctrls.rxctl
I guess usually txctl and rxctl are either both connected or both not connected.
txctl
[ ] Question [ ] Enhancement [X] Bug
ARM Internal Ref: IOTCELL-996
Closing the issue as fixed.
Description
I've spotted a possible typo in
SX1272_LoRaRadio::set_low_power_mode
andSX1276_LoRaRadio::set_low_power_mode
.I was just perusing and noticed the handling of
rxctl
looked a bit asymmetric. I've no real idea about what's going so I could well be wrong!Looks to me like
_rf_ctrls.txctl
is repeated and the second one should be_rf_ctrls.rxctl
.I guess usually
txctl
andrxctl
are either both connected or both not connected.Issue request type
[ ] Question
[ ] Enhancement
[X] Bug