Flysky: addition of sub_protocol CX20

sub_protocol=4
7 channels
supports bind and extended channels
Only 1 TXID supported for now
This commit is contained in:
pascallanger
2016-11-29 22:30:03 +01:00
parent bf6e66ea47
commit 2d90844239
4 changed files with 41 additions and 17 deletions

View File

@@ -217,6 +217,14 @@ void A7105_Init(void)
for (uint8_t i = 0; i < 0x32; i++)
{
uint8_t val=pgm_read_byte_near(&A7105_Regs[i]);
#ifdef FLYSKY_A7105_INO
if(protocol==MODE_FLYSKY && sub_protocol==CX20)
{
if(i==0x0E) val=0x01
if(i==0x1F) val=0x1F
if(i==0x20) val=0x1E
}
#endif
if( val != 0xFF)
A7105_WriteReg(i, val);
}