Skip to content

Commit 1f5f480

Browse files
authored
Merge pull request #10 from MedadRufus/master
fix compile errors([-Werror=parentheses])
2 parents c7d96af + 98444da commit 1f5f480

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Diff for: src/SparkFun_u-blox_GNSS_Arduino_Library.cpp

+3-3
Original file line numberDiff line numberDiff line change
@@ -9597,7 +9597,7 @@ boolean SFE_UBLOX_GNSS::getSensorFusionMeasurement(UBX_ESF_MEAS_sensorData_t *se
95979597
if (packetUBXESFMEAS == NULL) //Bail if the RAM allocation failed
95989598
return (false);
95999599

9600-
if (packetUBXESFMEAS->moduleQueried.moduleQueried.bits.data & (1 << sensor) == 0)
9600+
if (packetUBXESFMEAS->moduleQueried.moduleQueried.bits.data & ((1 << sensor) == 0))
96019601
getESFMEAS(maxWait);
96029602
packetUBXESFMEAS->moduleQueried.moduleQueried.bits.data &= ~(1 << sensor); //Since we are about to give this to user, mark this data as stale
96039603
packetUBXESFMEAS->moduleQueried.moduleQueried.bits.all = false;
@@ -9617,7 +9617,7 @@ boolean SFE_UBLOX_GNSS::getRawSensorMeasurement(UBX_ESF_RAW_sensorData_t *sensor
96179617
if (packetUBXESFRAW == NULL) //Bail if the RAM allocation failed
96189618
return (false);
96199619

9620-
if (packetUBXESFRAW->moduleQueried.moduleQueried.bits.data & (1 << sensor) == 0)
9620+
if (packetUBXESFRAW->moduleQueried.moduleQueried.bits.data & ((1 << sensor) == 0))
96219621
getESFRAW(maxWait);
96229622
packetUBXESFRAW->moduleQueried.moduleQueried.bits.data &= ~(1 << sensor); //Since we are about to give this to user, mark this data as stale
96239623
packetUBXESFRAW->moduleQueried.moduleQueried.bits.all = false;
@@ -9639,7 +9639,7 @@ boolean SFE_UBLOX_GNSS::getSensorFusionStatus(UBX_ESF_STATUS_sensorStatus_t *sen
96399639
if (packetUBXESFSTATUS == NULL) //Bail if the RAM allocation failed
96409640
return (false);
96419641

9642-
if (packetUBXESFSTATUS->moduleQueried.moduleQueried.bits.status & (1 << sensor) == 0)
9642+
if (packetUBXESFSTATUS->moduleQueried.moduleQueried.bits.status & ((1 << sensor) == 0))
96439643
getESFSTATUS(maxWait);
96449644
packetUBXESFSTATUS->moduleQueried.moduleQueried.bits.status &= ~(1 << sensor); //Since we are about to give this to user, mark this data as stale
96459645
packetUBXESFSTATUS->moduleQueried.moduleQueried.bits.all = false;

0 commit comments

Comments
 (0)