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.
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.