bolderflight / ublox

Arduino and CMake library for communicating with uBlox GPS receivers.
MIT License
102 stars 33 forks source link

'elapsedMillis' does not name a type #16

Closed boris-gu closed 2 years ago

boris-gu commented 2 years ago

I have:
ESP32 DevKit v1
ubx v5.1.0
units v4.1.1
eigen v3.0.2

When I compile ublox_example.ino, I get an error

In file included from /home/boris/.var/app/cc.arduino.IDE2/cache/.arduinoIDE-unsaved202281-31-1aa1z6a.w72z/ublox_example/ublox_example.ino:26:0:
/home/boris/Документы/Projects/Arduino/libraries/ublox-5.1.0/src/ubx.h:161:3: error: 'elapsedMillis' does not name a type
   elapsedMillis t_ms_;
   ^

exit status 1

Compilation error: exit status 1
boris-gu commented 2 years ago

I have included elapsedMillis library in ubx.h and now everything works.

I do not know if this error appeared due to the peculiarity of using ESP32 or something else.

flybrianfly commented 2 years ago

Thanks, I fixed this in the latest release.