AFHDS2A: Fix for CROSSOVER-RX

CROSSOVER-RX are sending end of telemetry data despite having sensors after...
This commit is contained in:
pascallanger
2026-07-14 18:44:05 +02:00
parent 51a01d1393
commit 7bde06ff50
2 changed files with 4 additions and 1 deletions

View File

@@ -93,6 +93,9 @@ static void AFHDS2A_update_telemetry()
if (option & 0x80)
{// forward 0xAA and 0xAC telemetry to TX, skip rx and tx id to save space
packet_in[0]= TX_RSSI;
//Fix for CROSSOVER-RX,
if(packet[17+8]==0xFF && packet[21+8]==0xFC && packet[25+8]==0xFF)
packet[17+8]=0xFE; // RX_ERR_RATE needed for TX to validate the telem
#if 0
debug("T(%02X)=",packet[0]);
for(uint8_t i=9;i < AFHDS2A_RXPACKET_SIZE; i++)