Skip to content

Commit f3ac6c5

Browse files
committed
Update yml file. Add fixes to remove compiler warnings.
1 parent 912c939 commit f3ac6c5

File tree

3 files changed

+32
-4
lines changed

3 files changed

+32
-4
lines changed

.github/workflows/compile-sketch.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,20 +27,29 @@ jobs:
2727
platforms: |
2828
- name: esp32:esp32
2929
source-url: https://raw.githubusercontent.com/espressif/arduino-esp32/gh-pages/package_esp32_index.json
30+
env:
31+
CS: 1
32+
LED_BUILTIN: 13
3033
3134
# ESP32-S2
3235
# https://github.com/espressif/arduino-esp32/blob/master/boards.txt
3336
- fqbn: esp32:esp32:esp32s2
3437
platforms: |
3538
- name: esp32:esp32
3639
source-url: https://raw.githubusercontent.com/espressif/arduino-esp32/gh-pages/package_esp32_index.json
40+
env:
41+
CS: 1
42+
LED_BUILTIN: 13
3743
3844
# ESP32-C3
3945
# https://github.com/espressif/arduino-esp32/blob/master/boards.txt
4046
- fqbn: esp32:esp32:esp32c3
4147
platforms: |
4248
- name: esp32:esp32
4349
source-url: https://raw.githubusercontent.com/espressif/arduino-esp32/gh-pages/package_esp32_index.json
50+
env:
51+
CS: 1
52+
LED_BUILTIN: 13
4453
4554
# Artemis / Apollo3
4655
# https://github.com/sparkfun/Arduino_Apollo3/blob/main/boards.txt
@@ -55,6 +64,8 @@ jobs:
5564
platforms: |
5665
- name: esp8266:esp8266
5766
source-url: https://arduino.esp8266.com/stable/package_esp8266com_index.json
67+
env:
68+
CS: 1
5869
5970
# SAMD21
6071
# https://github.com/arduino/ArduinoCore-samd/blob/master/boards.txt
@@ -97,6 +108,16 @@ jobs:
97108
- source-url: https://github.com/${{github.repository}}.git
98109
sketch-paths: |
99110
- ./
111+
- '!./examples/Example11_ResetModule/Example2_FactoryDefaultsviaSerial/**'
112+
- '!./examples/Example12_UseUart/**'
113+
- '!./examples/Example13_PVT/Example3_AutoPVTviaUart/**'
114+
- '!./examples/Example13_PVT/Example4_AssumeAutoPVTviaUart/**'
115+
- '!./examples/Example2_NMEAParsing/**'
116+
- '!./examples/Example8_GetProtocolVersion_Serial/**'
117+
- '!./examples/NEO-M8P-2/Example3_BaseWithLCD/**'
118+
- '!./examples/Data_Logging/**'
119+
- '!./examples/ZED-F9P/Example14_NTRIPServer/**'
120+
- '!./examples/ZED-F9P/Example4_BaseWithLCD/**'
100121
enable-warnings-report: true
101122
# verbose: true
102123

examples/Example8_GetProtocolVersion_Serial/Example8_GetProtocolVersion_Serial.ino

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,11 @@
3131

3232
#include <SoftwareSerial.h>
3333

34-
#define mySerial Serial1 // Uncomment this line to connect via Serial1
34+
//#define mySerial Serial1 // Uncomment this line to connect via Serial1
3535
// - or -
3636
//SoftwareSerial mySerial(10, 11); // Uncomment this line to connect via SoftwareSerial(RX, TX). Connect pin 10 to GNSS TX pin.
37+
// - or -
38+
#define mySerial Serial // Uncomment this line if you just want to keep using Serial
3739

3840
#include <SparkFun_u-blox_GNSS_Arduino_Library.h> //http://librarymanager/All#SparkFun_u-blox_GNSS
3941
SFE_UBLOX_GNSS myGNSS;

src/SparkFun_u-blox_GNSS_Arduino_Library.cpp

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1648,16 +1648,17 @@ void SFE_UBLOX_GNSS::processRTCMframe(uint8_t incoming)
16481648
//This function is called for each byte of an RTCM frame
16491649
//Ths user can overwrite this function and process the RTCM frame as they please
16501650
//Bytes can be piped to Serial or other interface. The consumer could be a radio or the internet (Ntrip broadcaster)
1651-
void SFE_UBLOX_GNSS::processRTCM(uint8_t incoming) // IGNORE COMPILER WARNING unused parameter 'incoming'
1651+
void SFE_UBLOX_GNSS::processRTCM(uint8_t incoming)
16521652
{
1653+
uint8_t ignoreMe = incoming; // Do something with incoming just to get rid of the pesky compiler warning!
1654+
16531655
//Radio.sendReliable((String)incoming); //An example of passing this byte to a radio
16541656

16551657
//_debugSerial->write(incoming); //An example of passing this byte out the serial port
16561658

16571659
//Debug printing
16581660
// _debugSerial->print(F(" "));
16591661
// if(incoming < 0x10) _debugSerial->print(F("0"));
1660-
// if(incoming < 0x10) _debugSerial->print(F("0"));
16611662
// _debugSerial->print(incoming, HEX);
16621663
// if(rtcmFrameCounter % 16 == 0) _debugSerial->println();
16631664
}
@@ -2933,6 +2934,8 @@ sfe_ublox_status_e SFE_UBLOX_GNSS::sendCommand(ubxPacket *outgoingUBX, uint16_t
29332934
//Returns false if sensor fails to respond to I2C traffic
29342935
sfe_ublox_status_e SFE_UBLOX_GNSS::sendI2cCommand(ubxPacket *outgoingUBX, uint16_t maxWait)
29352936
{
2937+
uint16_t ignoreMe = maxWait; // Do something with maxWait just to avoid the pesky compiler warnings!
2938+
29362939
// From the integration guide:
29372940
// "The receiver does not provide any write access except for writing UBX and NMEA messages to the
29382941
// receiver, such as configuration or aiding data. Therefore, the register set mentioned in section Read
@@ -10735,8 +10738,10 @@ uint16_t SFE_UBLOX_GNSS::getMagAcc(uint16_t maxWait)
1073510738
}
1073610739

1073710740
// getGeoidSeparation is currently redundant. The geoid separation seems to only be provided in NMEA GGA and GNS messages.
10738-
int32_t SFE_UBLOX_GNSS::getGeoidSeparation(uint16_t maxWait) // IGNORE COMPILER WARNING unused parameter 'maxWait'
10741+
int32_t SFE_UBLOX_GNSS::getGeoidSeparation(uint16_t maxWait)
1073910742
{
10743+
uint16_t ignoreMe = maxWait; // Do something with maxWait just to get rid of the pesky compiler warning
10744+
1074010745
return (0);
1074110746
}
1074210747

0 commit comments

Comments
 (0)