1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-24 16:55:36 +03:00

Merge pull request #7170 from wind0r/fix_bst_writeGpsPositionPrameToBST

fix writeGpsPositionPrameToBST
This commit is contained in:
Michael Keller 2018-12-06 00:05:18 +13:00 committed by GitHub
commit a7d2852700
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -797,7 +797,7 @@ static uint8_t numOfSat = 0;
#ifdef USE_GPS
bool writeGpsPositionPrameToBST(void)
{
if ((lat != gpsSol.llh.lat) || (lon != gpsSol.llh.lon) || (alt != (gpsSol.llh.altCm / 100)) || (numOfSat != gpsSol.numSat)) {
if ((lat != gpsSol.llh.lat) || (lon != gpsSol.llh.lon) || (altM != (gpsSol.llh.altCm / 100)) || (numOfSat != gpsSol.numSat)) {
lat = gpsSol.llh.lat;
lon = gpsSol.llh.lon;
altM = gpsSol.llh.altCm / 100;