From 8025ebad481b3ebab3d7f672ad7a4ab592762099 Mon Sep 17 00:00:00 2001 From: PaulZC Date: Tue, 16 Nov 2021 16:53:59 +0000 Subject: [PATCH] Change boolean to bool in the examples --- .../Example6_getAutoHNRData/Example6_getAutoHNRData.ino | 6 +++--- examples/Example17_Geofence/Example17_Geofence.ino | 2 +- examples/Example21_ModuleInfo/Example21_ModuleInfo.ino | 4 ++-- .../NEO-M8P-2/Example1_EnableRTCM/Example1_EnableRTCM.ino | 2 +- .../Example2_StartRTCMBase/Example2_StartRTCMBase.ino | 2 +- .../NEO-M8P-2/Example3_BaseWithLCD/Example3_BaseWithLCD.ino | 2 +- .../Example12_setStaticPosition.ino | 2 +- .../Example3_StartRTCMBase/Example3_StartRTCMBase.ino | 2 +- .../ZED-F9P/Example4_BaseWithLCD/Example4_BaseWithLCD.ino | 2 +- 9 files changed, 12 insertions(+), 12 deletions(-) diff --git a/examples/Dead_Reckoning/Example6_getAutoHNRData/Example6_getAutoHNRData.ino b/examples/Dead_Reckoning/Example6_getAutoHNRData/Example6_getAutoHNRData.ino index d48787e..cac455b 100644 --- a/examples/Dead_Reckoning/Example6_getAutoHNRData/Example6_getAutoHNRData.ino +++ b/examples/Dead_Reckoning/Example6_getAutoHNRData/Example6_getAutoHNRData.ino @@ -31,9 +31,9 @@ #include //http://librarymanager/All#SparkFun_u-blox_GNSS SFE_UBLOX_GNSS myGNSS; -boolean usingAutoHNRAtt = false; -boolean usingAutoHNRDyn = false; -boolean usingAutoHNRPVT = false; +bool usingAutoHNRAtt = false; +bool usingAutoHNRDyn = false; +bool usingAutoHNRPVT = false; void setup() { diff --git a/examples/Example17_Geofence/Example17_Geofence.ino b/examples/Example17_Geofence/Example17_Geofence.ino index 684fd05..9a3a842 100644 --- a/examples/Example17_Geofence/Example17_Geofence.ino +++ b/examples/Example17_Geofence/Example17_Geofence.ino @@ -121,7 +121,7 @@ void loop() { geofenceState currentGeofenceState; // Create storage for the geofence state - boolean result = myGNSS.getGeofenceState(currentGeofenceState); + bool result = myGNSS.getGeofenceState(currentGeofenceState); Serial.print(F("getGeofenceState returned: ")); // Print the combined state Serial.print(result); // Get the geofence state diff --git a/examples/Example21_ModuleInfo/Example21_ModuleInfo.ino b/examples/Example21_ModuleInfo/Example21_ModuleInfo.ino index 2802c18..ab21a04 100644 --- a/examples/Example21_ModuleInfo/Example21_ModuleInfo.ino +++ b/examples/Example21_ModuleInfo/Example21_ModuleInfo.ino @@ -45,7 +45,7 @@ class SFE_UBLOX_GPS_ADD : public SFE_UBLOX_GNSS { public: - boolean getModuleInfo(uint16_t maxWait = 1100); //Queries module, texts + bool getModuleInfo(uint16_t maxWait = 1100); //Queries module, texts struct minfoStructure // Structure to hold the module info (uses 341 bytes of RAM) { @@ -115,7 +115,7 @@ void loop() { } -boolean SFE_UBLOX_GPS_ADD::getModuleInfo(uint16_t maxWait) +bool SFE_UBLOX_GPS_ADD::getModuleInfo(uint16_t maxWait) { myGNSS.minfo.hwVersion[0] = 0; myGNSS.minfo.swVersion[0] = 0; diff --git a/examples/NEO-M8P-2/Example1_EnableRTCM/Example1_EnableRTCM.ino b/examples/NEO-M8P-2/Example1_EnableRTCM/Example1_EnableRTCM.ino index 6addf88..83bb8cc 100644 --- a/examples/NEO-M8P-2/Example1_EnableRTCM/Example1_EnableRTCM.ino +++ b/examples/NEO-M8P-2/Example1_EnableRTCM/Example1_EnableRTCM.ino @@ -49,7 +49,7 @@ void setup() myGNSS.setI2COutput(COM_TYPE_UBX); //Set the I2C port to output UBX only (turn off NMEA noise) myGNSS.saveConfiguration(); //Save the current settings to flash and BBR - boolean response = true; + bool response = true; response &= myGNSS.enableRTCMmessage(UBX_RTCM_1005, COM_PORT_I2C, 1); //Enable message 1005 to output through I2C port, message every second response &= myGNSS.enableRTCMmessage(UBX_RTCM_1077, COM_PORT_I2C, 1); response &= myGNSS.enableRTCMmessage(UBX_RTCM_1087, COM_PORT_I2C, 1); diff --git a/examples/NEO-M8P-2/Example2_StartRTCMBase/Example2_StartRTCMBase.ino b/examples/NEO-M8P-2/Example2_StartRTCMBase/Example2_StartRTCMBase.ino index 8cf2375..f375ade 100644 --- a/examples/NEO-M8P-2/Example2_StartRTCMBase/Example2_StartRTCMBase.ino +++ b/examples/NEO-M8P-2/Example2_StartRTCMBase/Example2_StartRTCMBase.ino @@ -53,7 +53,7 @@ void setup() Serial.println(F("Press any key to send commands to begin Survey-In")); while (Serial.available() == 0) ; //Wait for user to press a key - boolean response; + bool response; //Check if Survey is in Progress before initiating one // From v2.0, the data from getSurveyStatus (UBX-NAV-SVIN) is returned in UBX_NAV_SVIN_t packetUBXNAVSVIN diff --git a/examples/NEO-M8P-2/Example3_BaseWithLCD/Example3_BaseWithLCD.ino b/examples/NEO-M8P-2/Example3_BaseWithLCD/Example3_BaseWithLCD.ino index d39f2b9..e945a32 100644 --- a/examples/NEO-M8P-2/Example3_BaseWithLCD/Example3_BaseWithLCD.ino +++ b/examples/NEO-M8P-2/Example3_BaseWithLCD/Example3_BaseWithLCD.ino @@ -72,7 +72,7 @@ void setup() // Please see u-blox_structs.h for the full definition of UBX_NAV_SVIN_t // You can either read the data from packetUBXNAVSVIN directly // or can use the helper functions: getSurveyInActive; getSurveyInValid; getSurveyInObservationTime; and getSurveyInMeanAccuracy - boolean response; + bool response; response = myGNSS.getSurveyStatus(2000); //Query module for SVIN status with 2000ms timeout (request can take a long time) if (response == false) { diff --git a/examples/ZED-F9P/Example12_setStaticPosition/Example12_setStaticPosition.ino b/examples/ZED-F9P/Example12_setStaticPosition/Example12_setStaticPosition.ino index d30ef49..78c15ea 100644 --- a/examples/ZED-F9P/Example12_setStaticPosition/Example12_setStaticPosition.ino +++ b/examples/ZED-F9P/Example12_setStaticPosition/Example12_setStaticPosition.ino @@ -47,7 +47,7 @@ void setup() myGNSS.setI2COutput(COM_TYPE_UBX); //Set the I2C port to output UBX only (turn off NMEA noise) - boolean success = true; + bool success = true; //-1280208.308,-4716803.847,4086665.811 is SparkFun HQ so... diff --git a/examples/ZED-F9P/Example3_StartRTCMBase/Example3_StartRTCMBase.ino b/examples/ZED-F9P/Example3_StartRTCMBase/Example3_StartRTCMBase.ino index d3d13be..c2d3a3f 100644 --- a/examples/ZED-F9P/Example3_StartRTCMBase/Example3_StartRTCMBase.ino +++ b/examples/ZED-F9P/Example3_StartRTCMBase/Example3_StartRTCMBase.ino @@ -61,7 +61,7 @@ void setup() Serial.println(F("Press any key to send commands to begin Survey-In")); while (Serial.available() == 0) ; //Wait for user to press a key - boolean response = true; + bool response = true; response &= myGNSS.enableRTCMmessage(UBX_RTCM_1005, COM_PORT_I2C, 1); //Enable message 1005 to output through I2C port, message every second response &= myGNSS.enableRTCMmessage(UBX_RTCM_1074, COM_PORT_I2C, 1); response &= myGNSS.enableRTCMmessage(UBX_RTCM_1084, COM_PORT_I2C, 1); diff --git a/examples/ZED-F9P/Example4_BaseWithLCD/Example4_BaseWithLCD.ino b/examples/ZED-F9P/Example4_BaseWithLCD/Example4_BaseWithLCD.ino index dfa025a..14a78a1 100644 --- a/examples/ZED-F9P/Example4_BaseWithLCD/Example4_BaseWithLCD.ino +++ b/examples/ZED-F9P/Example4_BaseWithLCD/Example4_BaseWithLCD.ino @@ -73,7 +73,7 @@ void setup() myGNSS.setI2COutput(COM_TYPE_UBX); //Set the I2C port to output UBX sentences (turn off NMEA noise) myGNSS.saveConfigSelective(VAL_CFG_SUBSEC_IOPORT); //Save the communications port settings to flash and BBR - boolean response = true; + bool response = true; response &= myGNSS.enableRTCMmessage(UBX_RTCM_1005, COM_PORT_I2C, 1); //Enable message 1005 to output through I2C port, message every second response &= myGNSS.enableRTCMmessage(UBX_RTCM_1074, COM_PORT_I2C, 1); response &= myGNSS.enableRTCMmessage(UBX_RTCM_1084, COM_PORT_I2C, 1);