mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-23 16:25:31 +03:00
Fixed altitude output in MSP.
This commit is contained in:
parent
6bada9c5e9
commit
4a833cdda7
1 changed files with 0 additions and 4 deletions
|
@ -1189,11 +1189,7 @@ static bool mspProcessOutCommand(int16_t cmdMSP, sbuf_t *dst)
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case MSP_ALTITUDE:
|
case MSP_ALTITUDE:
|
||||||
#if defined(USE_BARO) || defined(USE_RANGEFINDER)
|
|
||||||
sbufWriteU32(dst, getEstimatedAltitudeCm());
|
sbufWriteU32(dst, getEstimatedAltitudeCm());
|
||||||
#else
|
|
||||||
sbufWriteU32(dst, 0);
|
|
||||||
#endif
|
|
||||||
#ifdef USE_VARIO
|
#ifdef USE_VARIO
|
||||||
sbufWriteU16(dst, getEstimatedVario());
|
sbufWriteU16(dst, getEstimatedVario());
|
||||||
#else
|
#else
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue