Fix receiving RADIO_ID pkt
Thx @CapnBry
This commit is contained in:
committed by
Raphael Coeffic
parent
6b94c2f45d
commit
8b438bc672
@@ -225,12 +225,11 @@ void processCrossfireTelemetryFrame(uint8_t module)
|
|||||||
}
|
}
|
||||||
|
|
||||||
case RADIO_ID:
|
case RADIO_ID:
|
||||||
if (telemetryRxBuffer[3] == 0xEA // radio address
|
if (rxBuffer[3] == 0xEA // radio address
|
||||||
&& telemetryRxBuffer[5] == 0x10 // timing correction frame
|
&& rxBuffer[5] == 0x10 // timing correction frame
|
||||||
) {
|
) {
|
||||||
|
|
||||||
uint32_t update_interval;
|
uint32_t update_interval;
|
||||||
int32_t offset;
|
int32_t offset;
|
||||||
if (getCrossfireTelemetryValue<4>(6, (int32_t &)update_interval,
|
if (getCrossfireTelemetryValue<4>(6, (int32_t &)update_interval,
|
||||||
module) &&
|
module) &&
|
||||||
getCrossfireTelemetryValue<4>(10, offset, module)) {
|
getCrossfireTelemetryValue<4>(10, offset, module)) {
|
||||||
|
|||||||
Reference in New Issue
Block a user