Error compiling "RTK surveyor" source code

Dear All,

I’ve recently downloaded the last version of the firmware repo for RTK from

https://github.com/sparkfun/SparkFun_RTK_Firmware. I’ve been trying to compile the code using the Arduino IDE 1.8.19. For that purpose, I upgraded all the required libraries. However, I’m stuck with the following error:

C:…Firmware\RTK_Surveyor\NtripServer.ino: In function ‘void ntripServerUpdate()’:

NtripServer:358:25: error: format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘long unsigned int’ [-Werror=format=]

Serial.printf(“NTRIP Server connection timeout wait: %d of %d seconds \n\r”,

^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

((millis() - ntripServerLastConnectionAttempt) / 1000),


I'll appreciate any help.

Best

Nicologico

Be sure to see: https://docs.sparkfun.com/SparkFun_RTK_ … ing-source

My guess is you are using ESP32 core v2.0.4 which severely ratchets up the compiler warnings to errors. Use v2.0.2. We will migrate to v2.0.4 soon.