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:
1:dbcb3698f73a
Parent:
0:9c0917bfde97
Child:
3:ec068b7adad5
--- a/Demo/DemoApplication.cpp	Mon Mar 13 15:12:05 2017 +0000
+++ b/Demo/DemoApplication.cpp	Wed Mar 15 13:00:44 2017 +0000
@@ -19,6 +19,7 @@
 #include "DemoApplication.h"
 #include "FreqLUT.h"
 
+
 /*!
  * \brief Defines the local payload buffer size
  */
@@ -1300,6 +1301,7 @@
                 if( Eeprom.EepromData.DemoSettings.RngStatus == RNG_INIT )
                 {
                     Radio.GetPayload( Buffer, &BufferSize, BUFFER_SIZE );
+                    Radio.GetPacketStatus( &PacketStatus );
                     if( ( BufferSize > 0 ) && \
                         ( Buffer[0] == ( ( Eeprom.EepromData.DemoSettings.RngAddress >> 24 ) & 0xFF ) ) && \
                         ( Buffer[1] == ( ( Eeprom.EepromData.DemoSettings.RngAddress >> 16 ) & 0xFF ) ) && \
@@ -1307,7 +1309,7 @@
                         ( Buffer[3] == (   Eeprom.EepromData.DemoSettings.RngAddress         & 0xFF ) ) )
                     {
                         Eeprom.EepromData.DemoSettings.RngFei    = Radio.GetFrequencyError( );
-                        Eeprom.EepromData.DemoSettings.RssiValue = Radio.GetRssiInst( );
+                        Eeprom.EepromData.DemoSettings.RssiValue = PacketStatus.LoRa.RssiPkt;
                         Eeprom.EepromData.DemoSettings.CntPacketTx++;
                         CurrentChannel                                 = Buffer[4];
                         Eeprom.EepromData.DemoSettings.RngAntenna      = Buffer[5];
@@ -1720,10 +1722,6 @@
 
 void InitializeDemoParameters( uint8_t modulation )
 {
-/*
-    SetAntennaSwitch( );
-    Radio.Init( );
-*/
     Radio.SetStandby( STDBY_RC );
 
     Radio.SetRegulatorMode( ( RadioRegulatorModes_t )Eeprom.EepromData.DemoSettings.RadioPowerMode );