Bayang: add sub_protocol H8S3D

Protocol: 14
Sub_protocol: 1
This commit is contained in:
pascallanger
2016-12-02 10:19:35 +01:00
parent 5feb73c65b
commit 3fa40b2303
3 changed files with 12 additions and 3 deletions

View File

@@ -92,7 +92,7 @@ static void __attribute__((unused)) BAYANG_send_packet(uint8_t bind)
packet[11] = val & 0xFF;
}
packet[12] = rx_tx_addr[2]; // txid[2]
packet[13] = 0x0A;
packet[13] = sub_protocol==H8S3D?0x34:0x0A;
packet[14] = 0;
for (uint8_t i=0; i < BAYANG_PACKET_SIZE-1; i++)
packet[14] += packet[i];