SX126xDevKit
Dependencies: mbed DmTftLibrary SX126xLib
Diff: Demo/DemoApplication.cpp
- Revision:
- 2:8e1b4210df6b
- Parent:
- 1:b96176a4ccb8
--- a/Demo/DemoApplication.cpp Fri Mar 09 13:28:34 2018 +0000 +++ b/Demo/DemoApplication.cpp Wed Jul 18 13:34:10 2018 +0000 @@ -984,7 +984,7 @@ } else { - Radio.SetRxBoosted( ( ( Eeprom.EepromData.DemoSettings.InterPacketDelay << 1 ) + RX_TIMEOUT_MARGIN) << 6 ); + Radio.SetRxBoosted( ( ( Eeprom.EepromData.DemoSettings.InterPacketDelay << 1 ) + RX_TIMEOUT_MARGIN ) << 6 ); } refreshDisplay = 1; } @@ -1037,11 +1037,11 @@ Radio.SetDioIrqParams( IrqMask, IrqMask, IRQ_RADIO_NONE, IRQ_RADIO_NONE ); if( Eeprom.EepromData.DemoSettings.BoostedRx == false ) { - Radio.SetRx( ( Eeprom.EepromData.DemoSettings.InterPacketDelay ) << 6 ); + Radio.SetRx( ( ( Eeprom.EepromData.DemoSettings.InterPacketDelay << 1 ) + RX_TIMEOUT_MARGIN ) << 6 ); } else { - Radio.SetRxBoosted( ( Eeprom.EepromData.DemoSettings.InterPacketDelay ) << 6 ); + Radio.SetRxBoosted( ( ( Eeprom.EepromData.DemoSettings.InterPacketDelay << 1 ) + RX_TIMEOUT_MARGIN ) << 6 ); } refreshDisplay = 1; break;