LoRa node acquiring analog input and sending to LoRa Server - Working ok
Dependents: DISCO-L072CZ-LRWAN1_LoRa_node EIoT_LoRa_node_1 EIoT_LoRa_node_2 EIoT_LoRa_node_3
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