From 1588a6a23d9eb1c61afc0e27ae29d63a7f7a1911 Mon Sep 17 00:00:00 2001 From: Steffen Windoffer Date: Mon, 3 Dec 2018 16:35:50 +0100 Subject: [PATCH] fix writeGpsPositionPrameToBST --- src/main/target/COLIBRI_RACE/i2c_bst.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/target/COLIBRI_RACE/i2c_bst.c b/src/main/target/COLIBRI_RACE/i2c_bst.c index b2321cf4e7..d6efefe196 100644 --- a/src/main/target/COLIBRI_RACE/i2c_bst.c +++ b/src/main/target/COLIBRI_RACE/i2c_bst.c @@ -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;