summaryrefslogtreecommitdiff
path: root/core
diff options
context:
space:
mode:
authorHoss Zhou <zhouh@codeaurora.org>2018-12-20 15:05:08 +0800
committerGerrit - the friendly Code Review server <code-review@localhost>2019-03-18 16:33:52 -0700
commit1839fb1140242da10a6a599e65a7b79836007517 (patch)
tree28a5a60580cb1fd890ac0eddd1e271038ad04f21 /core
parenta7953cd7eac3c6262b1b96bfdaa555da925b6f12 (diff)
downloadgps-1839fb1140242da10a6a599e65a7b79836007517.tar.gz
clear magic number for GPS_LOCK
Change-Id: I3c1b5a18ab16382a436098f8af541bf7f125783e CRs-fixed: 2370451
Diffstat (limited to 'core')
-rw-r--r--core/ContextBase.cpp2
-rw-r--r--core/ContextBase.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/core/ContextBase.cpp b/core/ContextBase.cpp
index 3d55e1c..28109bb 100644
--- a/core/ContextBase.cpp
+++ b/core/ContextBase.cpp
@@ -108,7 +108,7 @@ void ContextBase::readConfig()
mGps_conf.INTERMEDIATE_POS = 0;
mGps_conf.ACCURACY_THRES = 0;
mGps_conf.NMEA_PROVIDER = 0;
- mGps_conf.GPS_LOCK = 0x03;
+ mGps_conf.GPS_LOCK = GNSS_CONFIG_GPS_LOCK_MO_AND_NI;
mGps_conf.SUPL_VER = 0x10000;
mGps_conf.SUPL_MODE = 0x1;
mGps_conf.SUPL_ES = 0;
diff --git a/core/ContextBase.h b/core/ContextBase.h
index 8a3d300..9c72835 100644
--- a/core/ContextBase.h
+++ b/core/ContextBase.h
@@ -55,7 +55,7 @@ typedef struct loc_gps_cfg_s
char XTRA_SERVER_3[LOC_MAX_PARAM_STRING];
uint32_t USE_EMERGENCY_PDN_FOR_EMERGENCY_SUPL;
uint32_t NMEA_PROVIDER;
- uint32_t GPS_LOCK;
+ GnssConfigGpsLock GPS_LOCK;
uint32_t A_GLONASS_POS_PROTOCOL_SELECT;
uint32_t AGPS_CERT_WRITABLE_MASK;
uint32_t AGPS_CONFIG_INJECT;