From 76199d8248b9688cc269fa099a5012b574ce92a8 Mon Sep 17 00:00:00 2001 From: Albert I Date: Fri, 25 Jun 2021 19:46:27 +0800 Subject: [PATCH] sdm660-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 0235d2c9..07346655 100644 --- a/gps/gnss/GnssAdapter.cpp +++ b/gps/gnss/GnssAdapter.cpp @@ -3928,7 +3928,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);