Kyosho/Hype: bind fix

This commit is contained in:
Pascal Langer 2020-09-30 20:30:07 +02:00
parent 4058f04b39
commit aa2717d6ab
2 changed files with 5 additions and 3 deletions

View File

@ -174,13 +174,15 @@ uint16_t initKyosho()
#endif #endif
if(sub_protocol==KYOSHO_HYPE) if(sub_protocol==KYOSHO_HYPE)
{ {
MProtocol_id &= 0x00FF00FF;
rx_tx_addr[0] = 0xAF - (rx_tx_addr[1]&0x0F);
rx_tx_addr[2] = 0xFF - rx_tx_addr[3];
MProtocol_id |= (rx_tx_addr[0]<<24) + (rx_tx_addr[2]<<8);
#ifdef KYOSHO_FORCE_ID_HYPE #ifdef KYOSHO_FORCE_ID_HYPE
MProtocol_id=0xAF90738C; MProtocol_id=0xAF90738C;
set_rx_tx_addr(MProtocol_id); set_rx_tx_addr(MProtocol_id);
memcpy(hopping_frequency,"\x27\x1B\x63\x75\x03\x39\x57\x69\x87\x0F\x7B\x3F\x33\x51\x6F",15); memcpy(hopping_frequency,"\x27\x1B\x63\x75\x03\x39\x57\x69\x87\x0F\x7B\x3F\x33\x51\x6F",15);
#endif #endif
MProtocol_id &= 0x00FF00FF;
MProtocol_id |= 0xAF007300;
if(IS_BIND_IN_PROGRESS) if(IS_BIND_IN_PROGRESS)
A7105_WriteID(0xAF00FF00); A7105_WriteID(0xAF00FF00);
else else

View File

@ -19,7 +19,7 @@
#define VERSION_MAJOR 1 #define VERSION_MAJOR 1
#define VERSION_MINOR 3 #define VERSION_MINOR 3
#define VERSION_REVISION 1 #define VERSION_REVISION 1
#define VERSION_PATCH_LEVEL 72 #define VERSION_PATCH_LEVEL 73
//****************** //******************
// Protocols // Protocols