mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-17 13:25:30 +03:00
Fix MSP values of the MAG (#5451)
The MAG only shows positive values in the configurator. This fixes it.
This commit is contained in:
parent
0e051bebb2
commit
44b19f3cdb
1 changed files with 1 additions and 1 deletions
|
@ -804,7 +804,7 @@ static bool mspProcessOutCommand(uint8_t cmdMSP, sbuf_t *dst)
|
||||||
sbufWriteU16(dst, gyroRateDps(i));
|
sbufWriteU16(dst, gyroRateDps(i));
|
||||||
}
|
}
|
||||||
for (int i = 0; i < 3; i++) {
|
for (int i = 0; i < 3; i++) {
|
||||||
sbufWriteU16(dst, mag.magADC[i]);
|
sbufWriteU16(dst, lrintf(mag.magADC[i]));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue