From 87685cf84cacee18b3933a01d24241b7624b491a Mon Sep 17 00:00:00 2001 From: Bertrand Songis Date: Sat, 18 Mar 2017 11:00:39 +0100 Subject: [PATCH] Fixes #4631 - Same problem was happening on ATTITUDE (16bits signed value) Tested by @sirPerma --- radio/src/telemetry/crossfire.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/radio/src/telemetry/crossfire.cpp b/radio/src/telemetry/crossfire.cpp index 3b8c66234..2709b1815 100644 --- a/radio/src/telemetry/crossfire.cpp +++ b/radio/src/telemetry/crossfire.cpp @@ -115,8 +115,8 @@ template bool getCrossfireTelemetryValue(uint8_t index, int32_t & value) { bool result = false; - value = 0; uint8_t * byte = &telemetryRxBuffer[index]; + value = (*byte & 0x80) ? -1 : 0; for (uint8_t i=0; i