1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-25 01:05:27 +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 #ifdef USE_GPS
bool writeGpsPositionPrameToBST(void) 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; lat = gpsSol.llh.lat;
lon = gpsSol.llh.lon; lon = gpsSol.llh.lon;
altM = gpsSol.llh.altCm / 100; altM = gpsSol.llh.altCm / 100;