CI - Resolve warnings, attempt to fix error for examples/ublox_ddc/ublox_dcc.ino
This commit is contained in:
parent
8081d05d6f
commit
57c7b6cb03
4 changed files with 4 additions and 6 deletions
|
|
@ -37,8 +37,6 @@ Adafruit_UBX::Adafruit_UBX(Stream &stream) {
|
||||||
* @brief Destructor
|
* @brief Destructor
|
||||||
*/
|
*/
|
||||||
Adafruit_UBX::~Adafruit_UBX() {
|
Adafruit_UBX::~Adafruit_UBX() {
|
||||||
if (_stream)
|
|
||||||
delete _stream;
|
|
||||||
if (onUBXMessage)
|
if (onUBXMessage)
|
||||||
onUBXMessage = NULL;
|
onUBXMessage = NULL;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
/*!
|
/*!
|
||||||
* @file ublox_ddc_example.ino
|
* @file ublox_ddc.ino
|
||||||
*
|
*
|
||||||
* Example sketch demonstrating the use of the Adafruit_UBloxDDC library
|
* Example sketch demonstrating the use of the Adafruit_UBloxDDC library
|
||||||
* with u-blox GPS/RTK modules over I2C (DDC) interface.
|
* with u-blox GPS/RTK modules over I2C (DDC) interface.
|
||||||
|
|
@ -12,7 +12,7 @@
|
||||||
* MIT license, all text above must be included in any redistribution
|
* MIT license, all text above must be included in any redistribution
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "Adafruit_UBloxDDC.h"
|
#include <Adafruit_UBloxDDC.h>
|
||||||
|
|
||||||
// Create Adafruit_UBloxDDC object with default I2C address (0x42)
|
// Create Adafruit_UBloxDDC object with default I2C address (0x42)
|
||||||
Adafruit_UBloxDDC gps;
|
Adafruit_UBloxDDC gps;
|
||||||
|
|
|
||||||
|
|
@ -101,7 +101,7 @@ void setup() {
|
||||||
|
|
||||||
void loop() {
|
void loop() {
|
||||||
static char nmeaSentenceBuf[SZ_NMEA_BUFFER];
|
static char nmeaSentenceBuf[SZ_NMEA_BUFFER];
|
||||||
static int nmeaSentenceIdx = 0;
|
static size_t nmeaSentenceIdx = 0;
|
||||||
|
|
||||||
// Check how many bytes are available
|
// Check how many bytes are available
|
||||||
int bytesAvailable = gps.available();
|
int bytesAvailable = gps.available();
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
/*!
|
/*!
|
||||||
* @file ubx_mode_test.ino
|
* @file ublox_ubxtest.ino
|
||||||
*
|
*
|
||||||
* Test sketch to verify switching to UBX protocol mode
|
* Test sketch to verify switching to UBX protocol mode
|
||||||
* This example uses I2C (DDC) to communicate with a u-blox module.
|
* This example uses I2C (DDC) to communicate with a u-blox module.
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue