Fixes #4631 - Same problem was happening on ATTITUDE (16bits signed value)

Tested by @sirPerma
This commit is contained in:
Bertrand Songis
2017-03-18 11:00:39 +01:00
parent 99472b4fb3
commit 87685cf84c
+1 -1
View File
@@ -115,8 +115,8 @@ template<int N>
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<N; i++) {
value <<= 8;
if (*byte != 0xff) {