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.
Dependencies: mbed QEI DmTftLibrary
Revision 1:dbcb3698f73a, committed 2017-03-15
- Comitter:
- GregCr
- Date:
- Wed Mar 15 13:00:44 2017 +0000
- Parent:
- 0:9c0917bfde97
- Child:
- 2:8ebe57eb273a
- Commit message:
- release candidate
Changed in this revision
Demo/DemoApplication.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- 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 );