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

fix writeGpsPositionPrameToBST

This commit is contained in:
Steffen Windoffer 2018-12-03 16:35:50 +01:00
parent b6408b3a32
commit 1588a6a23d

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;