ping pong with modifiable parameters

Dependencies:   mbed SX126xLib

Revision:
8:2952eeb51ceb
Parent:
7:df2f595fda33
Child:
9:58c61a425d06
diff -r df2f595fda33 -r 2952eeb51ceb main.cpp
--- a/main.cpp	Wed Jul 10 19:41:53 2019 +0000
+++ b/main.cpp	Mon Sep 09 21:24:04 2019 +0000
@@ -22,7 +22,7 @@
 const uint8_t PingMsg[] = "PING";
 const uint8_t PongMsg[] = "PONG";
 
-long unsigned RF_FREQUENCY = 450000000; // Hz
+long unsigned RF_FREQUENCY = 500000000; // Hz
 RadioLoRaSpreadingFactors_t spreading_factor = LORA_SF7;
 RadioLoRaBandwidths_t bandwidth = LORA_BW_500;
 int TX_OUTPUT_POWER  = 10; //The range of the output power is [-18..+13] dBm
@@ -413,25 +413,25 @@
             case 125:
                 bandwidth = LORA_BW_125;
             break;
-            case 062:
+            case 62:
                 bandwidth = LORA_BW_062;
             break;
-            case 041:
+            case 41:
                 bandwidth = LORA_BW_041;
             break;
-            case 031:
+            case 31:
                 bandwidth = LORA_BW_031;
             break;
-            case 020:
+            case 20:
                 bandwidth = LORA_BW_020;
             break;
-            case 015:
+            case 15:
                 bandwidth = LORA_BW_015;
             break;
-            case 010:
+            case 10:
                 bandwidth = LORA_BW_010;
             break;
-            case 007:
+            case 7:
                 bandwidth = LORA_BW_007;
             break;
             default: