Correct paranthesis.
This commit is contained in:
@@ -17458,7 +17458,7 @@ bool SFE_UBLOX_GNSS::getSensorFusionMeasurement(UBX_ESF_MEAS_sensorData_t *senso
|
|||||||
if (packetUBXESFMEAS == NULL) // Bail if the RAM allocation failed
|
if (packetUBXESFMEAS == NULL) // Bail if the RAM allocation failed
|
||||||
return (false);
|
return (false);
|
||||||
|
|
||||||
if (packetUBXESFMEAS->moduleQueried.moduleQueried.bits.data & ((1 << sensor) == 0))
|
if ((packetUBXESFMEAS->moduleQueried.moduleQueried.bits.data & (1 << sensor)) == 0)
|
||||||
getESFMEAS(maxWait);
|
getESFMEAS(maxWait);
|
||||||
packetUBXESFMEAS->moduleQueried.moduleQueried.bits.data &= ~(1 << sensor); // Since we are about to give this to user, mark this data as stale
|
packetUBXESFMEAS->moduleQueried.moduleQueried.bits.data &= ~(1 << sensor); // Since we are about to give this to user, mark this data as stale
|
||||||
packetUBXESFMEAS->moduleQueried.moduleQueried.bits.all = false;
|
packetUBXESFMEAS->moduleQueried.moduleQueried.bits.all = false;
|
||||||
@@ -17479,7 +17479,7 @@ bool SFE_UBLOX_GNSS::getRawSensorMeasurement(UBX_ESF_RAW_sensorData_t *sensorDat
|
|||||||
if (packetUBXESFRAW == NULL) // Bail if the RAM allocation failed
|
if (packetUBXESFRAW == NULL) // Bail if the RAM allocation failed
|
||||||
return (false);
|
return (false);
|
||||||
|
|
||||||
if (packetUBXESFRAW->moduleQueried.moduleQueried.bits.data & ((1 << sensor) == 0))
|
if ((packetUBXESFRAW->moduleQueried.moduleQueried.bits.data & (1 << sensor)) == 0)
|
||||||
getESFRAW(maxWait);
|
getESFRAW(maxWait);
|
||||||
packetUBXESFRAW->moduleQueried.moduleQueried.bits.data &= ~(1 << sensor); // Since we are about to give this to user, mark this data as stale
|
packetUBXESFRAW->moduleQueried.moduleQueried.bits.data &= ~(1 << sensor); // Since we are about to give this to user, mark this data as stale
|
||||||
packetUBXESFRAW->moduleQueried.moduleQueried.bits.all = false;
|
packetUBXESFRAW->moduleQueried.moduleQueried.bits.all = false;
|
||||||
@@ -17502,7 +17502,7 @@ bool SFE_UBLOX_GNSS::getSensorFusionStatus(UBX_ESF_STATUS_sensorStatus_t *sensor
|
|||||||
if (packetUBXESFSTATUS == NULL) // Bail if the RAM allocation failed
|
if (packetUBXESFSTATUS == NULL) // Bail if the RAM allocation failed
|
||||||
return (false);
|
return (false);
|
||||||
|
|
||||||
if (packetUBXESFSTATUS->moduleQueried.moduleQueried.bits.status & ((1 << sensor) == 0))
|
if ((packetUBXESFSTATUS->moduleQueried.moduleQueried.bits.status & (1 << sensor)) == 0)
|
||||||
getESFSTATUS(maxWait);
|
getESFSTATUS(maxWait);
|
||||||
packetUBXESFSTATUS->moduleQueried.moduleQueried.bits.status &= ~(1 << sensor); // Since we are about to give this to user, mark this data as stale
|
packetUBXESFSTATUS->moduleQueried.moduleQueried.bits.status &= ~(1 << sensor); // Since we are about to give this to user, mark this data as stale
|
||||||
packetUBXESFSTATUS->moduleQueried.moduleQueried.bits.all = false;
|
packetUBXESFSTATUS->moduleQueried.moduleQueried.bits.all = false;
|
||||||
|
|||||||
Reference in New Issue
Block a user