Skip to content

Commit

Permalink
Fixes #4631 - Same problem was happening on ATTITUDE (16bits signed v…
Browse files Browse the repository at this point in the history
…alue)

Tested by @sirPerma
  • Loading branch information
bsongis committed Mar 18, 2017
1 parent 99472b4 commit 87685cf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion radio/src/telemetry/crossfire.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 87685cf

Please sign in to comment.