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.
Fork of Elmo-Terminal by
Diff: RadioContex.cpp
- Revision:
- 10:e4cbc7292f40
- Parent:
- 6:453b018a9ba0
--- a/RadioContex.cpp Mon Oct 05 08:43:09 2015 +0000 +++ b/RadioContex.cpp Tue Oct 06 07:53:48 2015 +0000 @@ -73,6 +73,15 @@ debug_if( LORA_FHSS_ENABLED, "> Radio start LORA FHSS Mode < \n\r"); debug_if( !LORA_FHSS_ENABLED, "> Radio start LORA Mode < \n\r"); + + if (!settings->aget("paBoost")) + { + if(settings->aget("power")>14) + { + printf("RFO mode, limiting power to 14 dBm\r\n"); + settings->set("power",14); + } + } radio_->SetTxConfig( MODEM_LORA, settings->aget("power") , 0, settings->aget("bandwidth"), settings->aget("dataRate"), settings->aget("codeRate"),