Merge "Adding check of on_demand_time for inject time"
This commit is contained in:
commit
5e3119dca0
1 changed files with 6 additions and 4 deletions
|
@ -1163,10 +1163,12 @@ LocEngRequestTime::LocEngRequestTime(void* locEng) :
|
||||||
}
|
}
|
||||||
void LocEngRequestTime::proc() const {
|
void LocEngRequestTime::proc() const {
|
||||||
loc_eng_data_s_type* locEng = (loc_eng_data_s_type*)mLocEng;
|
loc_eng_data_s_type* locEng = (loc_eng_data_s_type*)mLocEng;
|
||||||
if (locEng->request_utc_time_cb != NULL) {
|
if (gps_conf.CAPABILITIES & GPS_CAPABILITY_ON_DEMAND_TIME) {
|
||||||
locEng->request_utc_time_cb();
|
if (locEng->request_utc_time_cb != NULL) {
|
||||||
} else {
|
locEng->request_utc_time_cb();
|
||||||
LOC_LOGE("Callback function for request time is NULL");
|
} else {
|
||||||
|
LOC_LOGE("Callback function for request time is NULL");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
inline void LocEngRequestTime::locallog() const {
|
inline void LocEngRequestTime::locallog() const {
|
||||||
|
|
Loading…
Reference in a new issue