particle-iot / gps-ublox

Support for u-blox NEO-M8U with paired NMEA parser
Apache License 2.0
5 stars 2 forks source link

[gen2] fix build for use of CHECK macros #11

Closed technobly closed 2 years ago

technobly commented 2 years ago

Problem

When including this library as a submodule for a multi-platform project, the CHECK macros fail to build on Gen2 devices since the check.h header was not included. It is getting included only by chance for Gen3. It's not included in Particle.h.

Solution

#include "check.h" Alternatively the CHECK macros could be copied here since this is an undocumented internal Device OS define/service.

eberseth commented 2 years ago

Sounds good