mirror of
https://github.com/pascallanger/DIY-Multiprotocol-TX-Module.git
synced 2025-10-28 17:41:04 +00:00
fix for DSM clone not working
This commit is contained in:
parent
bf38415420
commit
148fdc0d98
@ -599,6 +599,7 @@ void DSM_init()
|
|||||||
uint16_t temp = DSM_CLONE_EEPROM_OFFSET;
|
uint16_t temp = DSM_CLONE_EEPROM_OFFSET;
|
||||||
for(uint8_t i=0;i<4;i++)
|
for(uint8_t i=0;i<4;i++)
|
||||||
cyrfmfg_id[i] = eeprom_read_byte((EE_ADDR)temp++);
|
cyrfmfg_id[i] = eeprom_read_byte((EE_ADDR)temp++);
|
||||||
|
cyrfmfg_id[3]^=RX_num; //Model match
|
||||||
#if DEBUG_BIND
|
#if DEBUG_BIND
|
||||||
debugln("Using cloned ID");
|
debugln("Using cloned ID");
|
||||||
debug("Clone ID=")
|
debug("Clone ID=")
|
||||||
@ -619,8 +620,7 @@ void DSM_init()
|
|||||||
{
|
{
|
||||||
//SUB_PROTO_VALID;
|
//SUB_PROTO_VALID;
|
||||||
CYRF_GetMfgData(cyrfmfg_id);
|
CYRF_GetMfgData(cyrfmfg_id);
|
||||||
//Model match
|
cyrfmfg_id[3]^=RX_num; //Model match
|
||||||
cyrfmfg_id[3]^=RX_num;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user