particle-iot / gps-ublox

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

fix: 🐛[gen2] fix build for use of scope guard #12

Closed jack-particle closed 2 years ago

jack-particle commented 2 years ago

Problem

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

Solution

#include "scope_guard.h" Alternatively the scope guard could be copied here since this is an undocumented internal Device OS define/service.

The issue is the same as the issue of CHECK macros.