Explorar o código

sm8450-common: gps: Address logical-op-parentheses warning

Change-Id: I45d621a2b995afeb7757df3f89614a0d95552f33
Albert I %!s(int64=4) %!d(string=hai) anos
pai
achega
472e7d91a5
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      gps/gnss/GnssAdapter.cpp

+ 1 - 1
gps/gnss/GnssAdapter.cpp

@@ -4069,7 +4069,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);