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