From f498347c53bbffeb8dd87c1f1d8ead47621a27e4 Mon Sep 17 00:00:00 2001 From: Pascal Langer Date: Thu, 6 Jun 2019 10:07:57 +0200 Subject: [PATCH] V761 second TX ID/freqs --- Multiprotocol/Multiprotocol.h | 2 +- Multiprotocol/V761_nrf24l01.ino | 21 +++++++++++++-------- 2 files changed, 14 insertions(+), 9 deletions(-) diff --git a/Multiprotocol/Multiprotocol.h b/Multiprotocol/Multiprotocol.h index 5fc72ec..90d9b55 100644 --- a/Multiprotocol/Multiprotocol.h +++ b/Multiprotocol/Multiprotocol.h @@ -19,7 +19,7 @@ #define VERSION_MAJOR 1 #define VERSION_MINOR 2 #define VERSION_REVISION 1 -#define VERSION_PATCH_LEVEL 57 +#define VERSION_PATCH_LEVEL 58 //****************** // Protocols diff --git a/Multiprotocol/V761_nrf24l01.ino b/Multiprotocol/V761_nrf24l01.ino index 2493612..db94f5a 100644 --- a/Multiprotocol/V761_nrf24l01.ino +++ b/Multiprotocol/V761_nrf24l01.ino @@ -121,14 +121,19 @@ static void __attribute__((unused)) V761_init() static void __attribute__((unused)) V761_initialize_txid() { // TODO: try arbitrary rx_tx_addr & frequencies (except hopping_frequency[0]) - //Actual rx_tx_addr from SPI grab) - memcpy(rx_tx_addr,(uint8_t *)"\x6f\x2c\xb1\x93",4); - //Actual hopping_frequency from SPI grab) - memcpy(hopping_frequency,(uint8_t *)"\x14\x1e\x4b",3); - - //Dump from air on another TX - //memcpy(rx_tx_addr,(uint8_t *)"\xE8\xE4\x45\x09",4); - //memcpy(hopping_frequency,(uint8_t *)"\x??\x21\x44",3); // dump does not show any other frequencies used. Need to be rechecked... + if(RX_num&1) + { + //Actual rx_tx_addr from SPI grab) + memcpy(rx_tx_addr,(uint8_t *)"\x6f\x2c\xb1\x93",4); + //Actual hopping_frequency from SPI grab) + memcpy(hopping_frequency,(uint8_t *)"\x14\x1e\x4b",3); + } + else + { + //Dump from air on Protonus TX + memcpy(rx_tx_addr,(uint8_t *)"\xE8\xE4\x45\x09",4); + memcpy(hopping_frequency,(uint8_t *)"\x0D\x21\x44",3); + } } uint16_t V761_callback()