Skip to content

Commit c6be11a

Browse files
committed
Correct bracketing
1 parent 3af1a84 commit c6be11a

File tree

2 files changed

+6
-7
lines changed

2 files changed

+6
-7
lines changed

Firmware/RTK_Everywhere/GNSS_Mosaic.ino

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -390,7 +390,6 @@ bool GNSS_MOSAIC::checkPPPRates()
390390
// Returns true if successfully configured and false upon failure
391391
//----------------------------------------
392392
// If any of the settings in the signature have changed, reapply the Base configuration
393-
// See GNSS_MOSAIC_ROVER_SIGNATURE as an example
394393
#define GNSS_MOSAIC_BASE_SIGNATURE \
395394
( \
396395
((settings.minElev & 0x01) << 1) \
@@ -418,7 +417,7 @@ bool GNSS_MOSAIC::configureBase()
418417
return (false);
419418
}
420419

421-
if (settings.gnssConfiguredBase == 0x01 | GNSS_MOSAIC_BASE_SIGNATURE)
420+
if (settings.gnssConfiguredBase == (0x01 | GNSS_MOSAIC_BASE_SIGNATURE))
422421
{
423422
systemPrintln("Skipping mosaic Base configuration");
424423
setLoggingType(); // Needed because logUpdate exits early and never calls setLoggingType
@@ -572,7 +571,7 @@ bool GNSS_MOSAIC::configureOnce()
572571
RTCMv3 messages are enabled by enableRTCMRover / enableRTCMBase
573572
*/
574573

575-
if (settings.gnssConfiguredOnce == 0x01 | GNSS_MOSAIC_ONCE_SIGNATURE)
574+
if (settings.gnssConfiguredOnce == (0x01 | GNSS_MOSAIC_ONCE_SIGNATURE))
576575
{
577576
systemPrintln("mosaic configuration maintained");
578577
return (true);
@@ -686,7 +685,7 @@ bool GNSS_MOSAIC::configureRover()
686685
}
687686

688687
// If our settings haven't changed, trust GNSS's settings
689-
if (settings.gnssConfiguredRover == 0x01 | GNSS_MOSAIC_ROVER_SIGNATURE)
688+
if (settings.gnssConfiguredRover == (0x01 | GNSS_MOSAIC_ROVER_SIGNATURE))
690689
{
691690
systemPrintln("Skipping mosaic Rover configuration");
692691
setLoggingType(); // Needed because logUpdate exits early and never calls setLoggingType

Firmware/RTK_Everywhere/GNSS_ZED.ino

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -333,7 +333,7 @@ bool GNSS_ZED::configureBase()
333333
if (online.gnss == false)
334334
return (false);
335335

336-
if (settings.gnssConfiguredBase == 0x01 | GNSS_ZED_BASE_SIGNATURE)
336+
if (settings.gnssConfiguredBase == (0x01 | GNSS_ZED_BASE_SIGNATURE))
337337
{
338338
if (settings.debugGnss)
339339
systemPrintln("Skipping ZED Base configuration");
@@ -593,7 +593,7 @@ bool GNSS_ZED::configureGNSS()
593593
// Configuring the ZED can take more than 2000ms. Configuration is saved to
594594
// ZED RAM+BBR so there is no need to update settings unless user has modified
595595
// the settings file or internal settings.
596-
if (settings.gnssConfiguredOnce == 0x01 | GNSS_ZED_ONCE_SIGNATURE)
596+
if (settings.gnssConfiguredOnce == (0x01 | GNSS_ZED_ONCE_SIGNATURE))
597597
{
598598
systemPrintln("ZED-F9x configuration maintained");
599599
return (true);
@@ -799,7 +799,7 @@ bool GNSS_ZED::configureRover()
799799
}
800800

801801
// If our settings haven't changed, trust GNSS's settings
802-
if (settings.gnssConfiguredRover == 0x01 | GNSS_ZED_ROVER_SIGNATURE)
802+
if (settings.gnssConfiguredRover == (0x01 | GNSS_ZED_ROVER_SIGNATURE))
803803
{
804804
systemPrintln("Skipping ZED Rover configuration");
805805
return (true);

0 commit comments

Comments
 (0)