mirror of
https://github.com/pascallanger/DIY-Multiprotocol-TX-Module.git
synced 2026-08-01 18:48:59 +00:00
AFHDS2A: Fix for CROSSOVER-RX
CROSSOVER-RX are sending end of telemetry data despite having sensors after...
This commit is contained in:
@@ -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++)
|
||||
|
||||
@@ -887,7 +887,7 @@ void TelemetryUpdate()
|
||||
t += TXBUFFER_SIZE - h ;
|
||||
else
|
||||
t -= h ;
|
||||
if ( t < 32 )
|
||||
if ( t < 48 ) //32 )
|
||||
{
|
||||
debugln("TEL_BUF_FULL %d",t);
|
||||
return ;
|
||||
|
||||
Reference in New Issue
Block a user