
1st Fork
Dependencies: mbed QEI DmTftLibrary
Diff: Demo/DemoApplication.cpp
- Revision:
- 4:e9daf4ed7b4c
- Parent:
- 3:ec068b7adad5
- Child:
- 5:a0f5842fb337
--- a/Demo/DemoApplication.cpp Mon Mar 27 17:56:04 2017 +0000 +++ b/Demo/DemoApplication.cpp Mon Mar 27 17:57:48 2017 +0000 @@ -1002,7 +1002,6 @@ memcpy( &( PacketParams.Params.LoRa.CrcMode ), Eeprom.Buffer + PAK_RNG_CRC_MODE_EEPROM_ADDR, 1 ); memcpy( &( PacketParams.Params.LoRa.InvertIQ ), Eeprom.Buffer + PAK_RNG_IQ_INV_EEPROM_ADDR, 1 ); Radio.SetPacketType( ModulationParams.PacketType ); - Radio.WriteRegister( 0x880, Radio.ReadRegister( 0x880 ) & ( ~0x08 ) ); Radio.SetModulationParams( &ModulationParams ); Radio.SetPacketParams( &PacketParams ); Radio.SetRfFrequency( Eeprom.EepromData.DemoSettings.Frequency ); @@ -1123,7 +1122,6 @@ memcpy( &( PacketParams.Params.LoRa.InvertIQ ), Eeprom.Buffer + PAK_RNG_IQ_INV_EEPROM_ADDR, 1 ); Radio.SetPacketType( ModulationParams.PacketType ); - Radio.WriteRegister( 0x880, Radio.ReadRegister( 0x880 ) & ( ~0x08 ) ); Radio.SetModulationParams( &ModulationParams ); Radio.SetPacketParams( &PacketParams ); Radio.SetRangingRequestAddress( Eeprom.EepromData.DemoSettings.RngAddress ); @@ -1206,7 +1204,6 @@ memcpy( &( PacketParams.Params.LoRa.CrcMode ), Eeprom.Buffer + PAK_RNG_CRC_MODE_EEPROM_ADDR, 1 ); memcpy( &( PacketParams.Params.LoRa.InvertIQ ), Eeprom.Buffer + PAK_RNG_IQ_INV_EEPROM_ADDR, 1 ); Radio.SetPacketType( ModulationParams.PacketType ); - Radio.WriteRegister( 0x880, Radio.ReadRegister( 0x880 ) & ( ~0x08 ) ); Radio.SetModulationParams( &ModulationParams ); Radio.SetPacketParams( &PacketParams ); Radio.SetRfFrequency( Eeprom.EepromData.DemoSettings.Frequency ); @@ -1340,7 +1337,7 @@ memcpy( &( PacketParams.Params.LoRa.InvertIQ ), Eeprom.Buffer + PAK_RNG_IQ_INV_EEPROM_ADDR, 1 ); Radio.SetPacketType( ModulationParams.PacketType ); - Radio.WriteRegister( 0x880, Radio.ReadRegister( 0x880 ) & ( ~0x08 ) ); + Radio.SetModulationParams( &ModulationParams ); Radio.SetPacketParams( &PacketParams ); Radio.SetDeviceRangingAddress( Eeprom.EepromData.DemoSettings.RngAddress );