GNSS adapter: Do not send SPE NMEA to engine hub

Engine service does not need SPE NMEA report.

Change-Id: I809fa2857eec8292269b640928a44d8cc54308ed
CRs-fixed: 2232811
This commit is contained in:
Bhavna Sharma 2018-04-27 13:38:36 -07:00
parent 7dfa87b244
commit f50e02a555
2 changed files with 2 additions and 7 deletions

View file

@ -80,11 +80,6 @@ public:
(void) svPolynomial; (void) svPolynomial;
return false; return false;
} }
inline virtual bool gnssReportNmea(const char* nmea) {
(void) nmea;
return false;
}
}; };
typedef std::function<void(const UlpLocation& ulpLocation, typedef std::function<void(const UlpLocation& ulpLocation,

View file

@ -2667,7 +2667,7 @@ GnssAdapter::reportPositionEvent(const UlpLocation& ulpLocation,
// for all other cases: // for all other cases:
// case 1: fix is from engine hub, queue the msg // case 1: fix is from engine hub, queue the msg
// case 2: fix is not from engine hub, e.g. from QMI, and it is not an // case 2: fix is not from engine hub, e.g. from QMI, and it is not an
// unpropagated position and engine hub is not loaded, queue the msg // unpropagated position and engine hub is not loaded, queue the msg
// when message is queued, the position can be dispatched to requesting client // when message is queued, the position can be dispatched to requesting client
struct MsgReportPosition : public LocMsg { struct MsgReportPosition : public LocMsg {
GnssAdapter& mAdapter; GnssAdapter& mAdapter;
@ -2867,7 +2867,7 @@ void
GnssAdapter::reportNmeaEvent(const char* nmea, size_t length) GnssAdapter::reportNmeaEvent(const char* nmea, size_t length)
{ {
if (!loc_nmea_is_debug(nmea, length)) { if (!loc_nmea_is_debug(nmea, length)) {
mEngHubProxy->gnssReportNmea(nmea); return;
} }
struct MsgReportNmea : public LocMsg { struct MsgReportNmea : public LocMsg {