Remove reporting gps status from loc eng layer
GPS Status is reported from Loc Api layer, so reporting it in Loc Eng layer in addition is redundant. Also, SSR should not send engine on status when not in a session. Change-Id: I10bc2d112574de0016110e193d6c2cd071b00b2a CRs-fixed: 826256
This commit is contained in:
parent
5afa84fe91
commit
8a3533bd4a
1 changed files with 0 additions and 8 deletions
|
@ -1955,7 +1955,6 @@ static int loc_eng_start_handler(loc_eng_data_s_type &loc_eng_data)
|
|||
ret_val == LOC_API_ADAPTER_ERR_INTERNAL)
|
||||
{
|
||||
loc_eng_data.adapter->setInSession(TRUE);
|
||||
loc_inform_gps_status(loc_eng_data, GPS_STATUS_SESSION_BEGIN);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -2001,11 +2000,6 @@ static int loc_eng_stop_handler(loc_eng_data_s_type &loc_eng_data)
|
|||
if (loc_eng_data.adapter->isInSession()) {
|
||||
|
||||
ret_val = loc_eng_data.adapter->stopFix();
|
||||
if (ret_val == LOC_API_ADAPTER_ERR_SUCCESS)
|
||||
{
|
||||
loc_inform_gps_status(loc_eng_data, GPS_STATUS_SESSION_END);
|
||||
}
|
||||
|
||||
loc_eng_data.adapter->setInSession(FALSE);
|
||||
}
|
||||
|
||||
|
@ -2889,8 +2883,6 @@ void loc_eng_handle_engine_up(loc_eng_data_s_type &loc_eng_data)
|
|||
loc_eng_agps_reinit(loc_eng_data);
|
||||
}
|
||||
|
||||
loc_eng_report_status(loc_eng_data, GPS_STATUS_ENGINE_ON);
|
||||
|
||||
// modem is back up. If we crashed in the middle of navigating, we restart.
|
||||
if (loc_eng_data.adapter->isInSession()) {
|
||||
// This sets the copy in adapter to modem
|
||||
|
|
Loading…
Reference in a new issue