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
1 changed files with 1 additions and 1 deletions

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;