Fix AFHDS2A_RX

This commit is contained in:
pascallanger
2019-10-02 21:24:50 +02:00
parent 49a1ecea00
commit bf61295b76
3 changed files with 8 additions and 8 deletions

View File

@@ -167,7 +167,7 @@ static void multi_send_status()
#if defined (FRSKYX_RX_TELEMETRY) || defined (AFHDS2A_RX_TELEMETRY)
void receiver_channels_frame()
{
uint16_t len = pkt[3] * 11; // 11 bit per channel
uint16_t len = packet_in[3] * 11; // 11 bit per channel
if (len % 8 == 0)
len = 4 + (len / 8);
else