diff --git a/include/sta/system_event.hpp b/include/sta/system_event.hpp index 7e2ea1c..62ba480 100644 --- a/include/sta/system_event.hpp +++ b/include/sta/system_event.hpp @@ -1,6 +1,10 @@ #ifndef STA_SYSTEM_EVENT_HPP #define STA_SYSTEM_EVENT_HPP +#include + +#ifdef STA_SYSTEM_EVENT_ENABLE + #include @@ -42,4 +46,6 @@ namespace sta } // namespace sta +#endif // STA_SYSTEM_EVENT_ENABLE + #endif // STA_SYSTEM_EVENT_HPP \ No newline at end of file diff --git a/src/system_event.cpp b/src/system_event.cpp index 5eafbfe..57efb46 100644 --- a/src/system_event.cpp +++ b/src/system_event.cpp @@ -1,5 +1,7 @@ #include +#ifdef STA_SYSTEM_EVENT_ENABLE + #include @@ -30,3 +32,6 @@ namespace sta waitForSystemEvents(STA_SYSTEM_EVENT_STARTUP, osFlagsWaitAll, osWaitForever); } } // namespace sta + + +#endif // STA_SYSTEM_EVENT_ENABLE \ No newline at end of file