This code holds the complete demo set for the sx1280: PingPong, PER and Ranging Outdoor demo application. >>>>> This code MUST run on the mbed library release 127 or everything will be painfully slow.

Dependencies:   mbed SX1280Lib DmTftLibrary

* This code MUST run on the mbed library release 127 or everything will be painfully slow.*
Revision:
7:bc2f0fe8056f
Parent:
6:e4c4a6878542
Child:
8:c0a5f53fe196
--- a/Demo/DemoApplication.cpp	Mon Apr 03 15:33:08 2017 +0000
+++ b/Demo/DemoApplication.cpp	Wed Apr 19 14:21:05 2017 +0000
@@ -1034,7 +1034,8 @@
                         switch( Eeprom.EepromData.DemoSettings.RngAntenna )
                         {
                             case DEMO_RNG_ANT_1:
-                                ANT_SW = 1; // ANT1
+                                //ANT_SW = 1; // ANT1
+                                Eeprom.EepromData.DemoSettings.AntennaSwitch = 0;
                                 CurrentChannel++;
                                 if( CurrentChannel >= CHANNELS )
                                 {
@@ -1043,7 +1044,8 @@
                                 break;
 
                             case DEMO_RNG_ANT_2:
-                                ANT_SW = 0; // ANT2
+                                //ANT_SW = 0; // ANT2
+                                Eeprom.EepromData.DemoSettings.AntennaSwitch = 1;
                                 CurrentChannel++;
                                 if( CurrentChannel >= CHANNELS )
                                 {
@@ -1054,11 +1056,13 @@
                             case DEMO_RNG_ANT_BOTH:
                                 if( ANT_SW == 1 )
                                 {
-                                    ANT_SW = 0;
+                                    //ANT_SW = 0;
+                                    Eeprom.EepromData.DemoSettings.AntennaSwitch = 1;
                                 }
                                 else
                                 {
-                                    ANT_SW = 1;
+                                    //ANT_SW = 1;
+                                    Eeprom.EepromData.DemoSettings.AntennaSwitch = 0;
                                     CurrentChannel++;
                                     if( CurrentChannel >= CHANNELS )
                                     {