Bayang: new subprotocol CX100

This commit is contained in:
Pascal Langer
2020-06-02 14:59:32 +02:00
parent 0d97af5ae2
commit 50f1eca4be
6 changed files with 13 additions and 3 deletions

View File

@@ -67,12 +67,16 @@ static void __attribute__((unused)) BAYANG_send_packet()
else
#endif
packet[0]= 0xA4;
if(sub_protocol==CX100)
packet[0] = 0x53;
for(i=0;i<5;i++)
packet[i+1]=rx_tx_addr[i];
for(i=0;i<4;i++)
packet[i+6]=hopping_frequency[i];
switch (sub_protocol)
{
case CX100:
case X16_AH:
packet[10] = 0x00;
packet[11] = 0x00;
@@ -161,6 +165,7 @@ static void __attribute__((unused)) BAYANG_send_packet()
packet[12] = rx_tx_addr[2]; // txid[2]
packet[13] = 0x34;
break;
case CX100:
case X16_AH:
packet[12] = 0;
packet[13] = 0;