fix for DSM clone not working

This commit is contained in:
MRC3742 2025-10-10 23:54:15 -04:00 committed by GitHub
parent bf38415420
commit 148fdc0d98
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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;
} }
} }