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: Turtle_RadioShuttle
Diff: examples/RadioTest.cpp
- Revision:
- 9:02766ad58bdd
- Parent:
- 8:456cdcb077b3
--- a/examples/RadioTest.cpp Fri Feb 15 09:56:08 2019 +0100
+++ b/examples/RadioTest.cpp Tue Feb 26 08:56:31 2019 +0100
@@ -365,6 +365,8 @@
myProfile[0].Frequency = value;
if ((value = prop.GetProperty(prop.LORA_TXPOWER, 0)) != 0)
myProfile[0].TXPower = value;
+ if ((value = prop.GetProperty(prop.LORA_SPREADING_FACTOR, 0)) != 0)
+ myProfile[0].SpreadingFaktor = value;
#endif
@@ -383,8 +385,6 @@
LORA_SPI_MOSI, LORA_SPI_MISO, LORA_SPI_SCLK, LORA_CS, LORA_RESET,
LORA_DIO0, LORA_DIO1, LORA_DIO2, LORA_DIO3, LORA_DIO4, LORA_DIO5);
#endif
- if ((value = prop.GetProperty(prop.LORA_SPREADING_FACTOR, 0)) != 0)
- myProfile[0].SpreadingFaktor = value;
dprintf("RadioContinuesTX test, press reset to abort");
while(true) {