Skip to content

Commit 8025eba

Browse files
committed
Change boolean to bool in the examples
1 parent d12c473 commit 8025eba

File tree

9 files changed

+12
-12
lines changed

9 files changed

+12
-12
lines changed

Diff for: examples/Dead_Reckoning/Example6_getAutoHNRData/Example6_getAutoHNRData.ino

+3-3
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,9 @@
3131
#include <SparkFun_u-blox_GNSS_Arduino_Library.h> //http://librarymanager/All#SparkFun_u-blox_GNSS
3232
SFE_UBLOX_GNSS myGNSS;
3333

34-
boolean usingAutoHNRAtt = false;
35-
boolean usingAutoHNRDyn = false;
36-
boolean usingAutoHNRPVT = false;
34+
bool usingAutoHNRAtt = false;
35+
bool usingAutoHNRDyn = false;
36+
bool usingAutoHNRPVT = false;
3737

3838
void setup()
3939
{

Diff for: examples/Example17_Geofence/Example17_Geofence.ino

+1-1
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ void loop()
121121
{
122122
geofenceState currentGeofenceState; // Create storage for the geofence state
123123

124-
boolean result = myGNSS.getGeofenceState(currentGeofenceState);
124+
bool result = myGNSS.getGeofenceState(currentGeofenceState);
125125

126126
Serial.print(F("getGeofenceState returned: ")); // Print the combined state
127127
Serial.print(result); // Get the geofence state

Diff for: examples/Example21_ModuleInfo/Example21_ModuleInfo.ino

+2-2
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@
4545
class SFE_UBLOX_GPS_ADD : public SFE_UBLOX_GNSS
4646
{
4747
public:
48-
boolean getModuleInfo(uint16_t maxWait = 1100); //Queries module, texts
48+
bool getModuleInfo(uint16_t maxWait = 1100); //Queries module, texts
4949

5050
struct minfoStructure // Structure to hold the module info (uses 341 bytes of RAM)
5151
{
@@ -115,7 +115,7 @@ void loop()
115115
{
116116
}
117117

118-
boolean SFE_UBLOX_GPS_ADD::getModuleInfo(uint16_t maxWait)
118+
bool SFE_UBLOX_GPS_ADD::getModuleInfo(uint16_t maxWait)
119119
{
120120
myGNSS.minfo.hwVersion[0] = 0;
121121
myGNSS.minfo.swVersion[0] = 0;

Diff for: examples/NEO-M8P-2/Example1_EnableRTCM/Example1_EnableRTCM.ino

+1-1
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ void setup()
4949
myGNSS.setI2COutput(COM_TYPE_UBX); //Set the I2C port to output UBX only (turn off NMEA noise)
5050
myGNSS.saveConfiguration(); //Save the current settings to flash and BBR
5151

52-
boolean response = true;
52+
bool response = true;
5353
response &= myGNSS.enableRTCMmessage(UBX_RTCM_1005, COM_PORT_I2C, 1); //Enable message 1005 to output through I2C port, message every second
5454
response &= myGNSS.enableRTCMmessage(UBX_RTCM_1077, COM_PORT_I2C, 1);
5555
response &= myGNSS.enableRTCMmessage(UBX_RTCM_1087, COM_PORT_I2C, 1);

Diff for: examples/NEO-M8P-2/Example2_StartRTCMBase/Example2_StartRTCMBase.ino

+1-1
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ void setup()
5353
Serial.println(F("Press any key to send commands to begin Survey-In"));
5454
while (Serial.available() == 0) ; //Wait for user to press a key
5555

56-
boolean response;
56+
bool response;
5757

5858
//Check if Survey is in Progress before initiating one
5959
// From v2.0, the data from getSurveyStatus (UBX-NAV-SVIN) is returned in UBX_NAV_SVIN_t packetUBXNAVSVIN

Diff for: examples/NEO-M8P-2/Example3_BaseWithLCD/Example3_BaseWithLCD.ino

+1-1
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ void setup()
7272
// Please see u-blox_structs.h for the full definition of UBX_NAV_SVIN_t
7373
// You can either read the data from packetUBXNAVSVIN directly
7474
// or can use the helper functions: getSurveyInActive; getSurveyInValid; getSurveyInObservationTime; and getSurveyInMeanAccuracy
75-
boolean response;
75+
bool response;
7676
response = myGNSS.getSurveyStatus(2000); //Query module for SVIN status with 2000ms timeout (request can take a long time)
7777
if (response == false)
7878
{

Diff for: examples/ZED-F9P/Example12_setStaticPosition/Example12_setStaticPosition.ino

+1-1
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ void setup()
4747

4848
myGNSS.setI2COutput(COM_TYPE_UBX); //Set the I2C port to output UBX only (turn off NMEA noise)
4949

50-
boolean success = true;
50+
bool success = true;
5151

5252
//-1280208.308,-4716803.847,4086665.811 is SparkFun HQ so...
5353

Diff for: examples/ZED-F9P/Example3_StartRTCMBase/Example3_StartRTCMBase.ino

+1-1
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ void setup()
6161
Serial.println(F("Press any key to send commands to begin Survey-In"));
6262
while (Serial.available() == 0) ; //Wait for user to press a key
6363

64-
boolean response = true;
64+
bool response = true;
6565
response &= myGNSS.enableRTCMmessage(UBX_RTCM_1005, COM_PORT_I2C, 1); //Enable message 1005 to output through I2C port, message every second
6666
response &= myGNSS.enableRTCMmessage(UBX_RTCM_1074, COM_PORT_I2C, 1);
6767
response &= myGNSS.enableRTCMmessage(UBX_RTCM_1084, COM_PORT_I2C, 1);

Diff for: examples/ZED-F9P/Example4_BaseWithLCD/Example4_BaseWithLCD.ino

+1-1
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ void setup()
7373
myGNSS.setI2COutput(COM_TYPE_UBX); //Set the I2C port to output UBX sentences (turn off NMEA noise)
7474
myGNSS.saveConfigSelective(VAL_CFG_SUBSEC_IOPORT); //Save the communications port settings to flash and BBR
7575

76-
boolean response = true;
76+
bool response = true;
7777
response &= myGNSS.enableRTCMmessage(UBX_RTCM_1005, COM_PORT_I2C, 1); //Enable message 1005 to output through I2C port, message every second
7878
response &= myGNSS.enableRTCMmessage(UBX_RTCM_1074, COM_PORT_I2C, 1);
7979
response &= myGNSS.enableRTCMmessage(UBX_RTCM_1084, COM_PORT_I2C, 1);

0 commit comments

Comments
 (0)