1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-17 05:15:25 +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:
Míguel Ángel Mulero Martínez 2018-03-15 20:09:13 +01:00 committed by Michael Keller
parent 0e051bebb2
commit 44b19f3cdb

View file

@ -804,7 +804,7 @@ static bool mspProcessOutCommand(uint8_t cmdMSP, sbuf_t *dst)
sbufWriteU16(dst, gyroRateDps(i));
}
for (int i = 0; i < 3; i++) {
sbufWriteU16(dst, mag.magADC[i]);
sbufWriteU16(dst, lrintf(mag.magADC[i]));
}
}
break;