mirror of
https://github.com/pascallanger/DIY-Multiprotocol-TX-Module.git
synced 2026-01-18 08:43:18 +00:00
Initial Version of CloneMode (#342)
* Initial Version * Bugfix and change of the handling of the RX Num. If RX Num is 63, write a finetune value of 127 to the EEPROM. A real finetune value of 127 means, the frequency of module is out of range and the module should be replaced. This way the clone mode should not get unwanted active by a module with a frequency drift arround 63.
This commit is contained in:
@@ -392,8 +392,17 @@ uint16_t FrSky_Rx_callback()
|
||||
eeprom_write_byte((EE_ADDR)temp++, rx_tx_addr[2]);
|
||||
debug("addr[2]=%02X, ", rx_tx_addr[2]);
|
||||
debug("rx_num=%02X, ", packet[12]); // RX # (D16)
|
||||
eeprom_write_byte((EE_ADDR)temp++, frsky_rx_finetune);
|
||||
debugln("tune=%d", (int8_t)frsky_rx_finetune);
|
||||
if (packet[12]==63)
|
||||
{
|
||||
// If RX Num is 63, write a finetune value of 127 to the EEPROM
|
||||
// A real finetune value of 127 means, the frequency of module is out of range and the module should be replaced.
|
||||
eeprom_write_byte((EE_ADDR)temp++, 127);
|
||||
}
|
||||
else
|
||||
{
|
||||
eeprom_write_byte((EE_ADDR)temp++, frsky_rx_finetune);
|
||||
debugln("tune=%d", (int8_t)frsky_rx_finetune);
|
||||
}
|
||||
for (ch = 0; ch < 47; ch++)
|
||||
{
|
||||
eeprom_write_byte((EE_ADDR)temp++, hopping_frequency[ch]);
|
||||
|
||||
Reference in New Issue
Block a user