1
0
Fork 0
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:
Michael Keller 2020-06-03 07:04:49 +12:00 committed by GitHub
commit 026bae5c1f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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