You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
RNG.cpp include <Arduoino.h> and makes use of Arduino millis() and micros() functions.
It's evident from code in the repo that this issue was circumvented for this project by emulating Arduino (.../host/emulation/Arduino.h), but it's not clear how this emulation can be included by external projects.
I'm using PlatformIO specifically. Any advice for how to include the emulation for a native host build?
Thanks!
The text was updated successfully, but these errors were encountered:
Unless I’m misunderstanding something, PlatformIO’s platform-native functionality is exactly what @attermann is using for unit testing purposes, and the inclusion of Arduino.h makes it impossible to compile this library on native environments.
I‘ve run into the same issue and am currently looking for a solution.
RNG.cpp include <Arduoino.h> and makes use of Arduino millis() and micros() functions.
It's evident from code in the repo that this issue was circumvented for this project by emulating Arduino (.../host/emulation/Arduino.h), but it's not clear how this emulation can be included by external projects.
I'm using PlatformIO specifically. Any advice for how to include the emulation for a native host build?
Thanks!
The text was updated successfully, but these errors were encountered: