From 7a678665fdbc9ec430f9d3503007dc0315c89c9e Mon Sep 17 00:00:00 2001 From: Albert I Date: Fri, 25 Jun 2021 19:46:27 +0800 Subject: [PATCH] sm6225-common: gps: Address logical-op-parentheses warning Change-Id: I45d621a2b995afeb7757df3f89614a0d95552f33 --- gps/gnss/GnssAdapter.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gps/gnss/GnssAdapter.cpp b/gps/gnss/GnssAdapter.cpp index d5f4db0..90d93db 100644 --- a/gps/gnss/GnssAdapter.cpp +++ b/gps/gnss/GnssAdapter.cpp @@ -3884,7 +3884,7 @@ bool GnssAdapter::needToGenerateNmeaReport(const uint32_t &gpsTimeOfWeekMs, * Send when gpsTimeOfWeekMs is closely aligned with integer boundary */ if ((0 == mPrevNmeaRptTimeNsec) || - (0 != gpsTimeOfWeekMs) && (NMEA_MIN_THRESHOLD_MSEC >= (gpsTimeOfWeekMs % 1000))) { + ((0 != gpsTimeOfWeekMs) && (NMEA_MIN_THRESHOLD_MSEC >= (gpsTimeOfWeekMs % 1000)))) { retVal = true; } else { uint64_t timeDiffMsec = ((currentTimeNsec - mPrevNmeaRptTimeNsec) / 1000000);