Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependents: MAX326xxFTHR_LoRa_RFM95 MAX326xxFTHR_LoRa_PingPong MAX326xxFTHR_RFM95_LoRa_PingPong MAX326xxFTHR_LoRa_RFM95_PingPong_Example ... more
Fork of SX1276GenericLib by
Diff: sx1276/sx1276-mbed-hal.cpp
- Revision:
- 41:2dbc4afedf61
- Parent:
- 39:706c32eda7e7
- Child:
- 42:72deced1a4c4
diff -r 0165543c0986 -r 2dbc4afedf61 sx1276/sx1276-mbed-hal.cpp
--- a/sx1276/sx1276-mbed-hal.cpp Mon May 08 09:57:28 2017 +0200
+++ b/sx1276/sx1276-mbed-hal.cpp Mon May 08 15:39:42 2017 +0200
@@ -311,8 +311,10 @@
case RFLR_OPMODE_TRANSMITTER:
if (boardConnected == MURATA_SX1276) {
*_antSwitch = 0;// Murata-RX
- *_antSwitchTX = 1; // alternate: antSwitchTXBoost = 1
- *_antSwitchTXBoost = 0;
+ if (Read( REG_PACONFIG) & RF_PACONFIG_PASELECT_PABOOST)
+ *_antSwitchTXBoost = 1;
+ else
+ *_antSwitchTX = 1; // alternate: antSwitchTXBoost = 1
} else {
if (_antSwitch)
*_antSwitch = 1;
@@ -330,6 +332,8 @@
_antSwitch = 0;
}
break;
+ case RFLR_OPMODE_SLEEP:
+ case RFLR_OPMODE_STANDBY:
default:
if (boardConnected == MURATA_SX1276) {
*_antSwitch = 0; //Murata-RX
