Merge pull request #7200 from etracer65/fix_smartport_gps_alt

Fix smartport GPS altitude
This commit is contained in:
Michael Keller 2018-12-13 00:38:11 +13:00 committed by GitHub
commit 6cea7039d5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -824,7 +824,7 @@ void processSmartPortTelemetry(smartPortPayload_t *payload, volatile bool *clear
break;
case FSSP_DATAID_GPS_ALT :
if (STATE(GPS_FIX)) {
smartPortSendPackage(id, gpsSol.llh.altCm * 10); // given in 0.01m , requested in 10 = 1m (should be in mm, probably a bug in opentx, tested on 2.0.1.7)
smartPortSendPackage(id, gpsSol.llh.altCm); // given in 0.01m
*clearToSend = false;
}
break;