Fork of this for my stuff.

Revision:
41:2dbc4afedf61
Parent:
39:706c32eda7e7
Child:
42:72deced1a4c4
--- 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