Hitec: fix a bind issue

This commit is contained in:
Pascal Langer 2020-03-21 19:00:40 +01:00
parent 2b8ed25843
commit 3df836e6b8
2 changed files with 8 additions and 3 deletions

View File

@ -146,6 +146,11 @@ static void __attribute__((unused)) HITEC_build_packet()
break; break;
case 0x7B: case 0x7B:
packet[5]=hopping_frequency[13]>>1; // if not there the Optima link is jerky... packet[5]=hopping_frequency[13]>>1; // if not there the Optima link is jerky...
packet[14]=0x2A;
packet[15]=0x46; // unknown but if 0x45 then 17=0x46, if 0x46 then 17=0x46 or 0x47, if 0x47 then 0x45 or 0x46
packet[16]=0x2A;
packet[17]=0x47;
packet[18]=0x2A;
break; break;
} }
if(sub_protocol==MINIMA) if(sub_protocol==MINIMA)
@ -302,8 +307,8 @@ uint16_t ReadHITEC()
{ // bind packet: 0A,00,E5,F2,7X,05,06,07,08,09,00 { // bind packet: 0A,00,E5,F2,7X,05,06,07,08,09,00
debug(",bind"); debug(",bind");
boolean check=true; boolean check=true;
for(uint8_t i=5;i<=10;i++) for(uint8_t i=5;i<10;i++)
if(packet_in[i]!=i%10) check=false; if(packet_in[i]!=i) check=false;
if((packet_in[4]&0xF0)==0x70 && check) if((packet_in[4]&0xF0)==0x70 && check)
{ {
bind_phase=packet_in[4]+1; bind_phase=packet_in[4]+1;

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 0 #define VERSION_REVISION 0
#define VERSION_PATCH_LEVEL 75 #define VERSION_PATCH_LEVEL 76
//****************** //******************
// Protocols // Protocols