Fix smartport GPS altitude

Value sent was erroneously scaled up by a factor of 10.
This commit is contained in:
Bruce Luckcuck 2018-12-10 09:36:04 -05:00
parent 6972f3eb01
commit 50e47e1536
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;