From: joeycastillo Date: Wed, 12 Oct 2022 03:06:02 +0000 (-0500) Subject: only include watch_main_loop.h in simulator builds X-Git-Url: https://git.earman.xyz/?a=commitdiff_plain;h=b399f4ca459d0487139f642c7b526fb4144cac8b;p=sensor-watch.git only include watch_main_loop.h in simulator builds --- diff --git a/apps/starter-project/app.c b/apps/starter-project/app.c index 5dfde68..2efa6e7 100644 --- a/apps/starter-project/app.c +++ b/apps/starter-project/app.c @@ -1,7 +1,6 @@ #include #include #include "watch.h" -#include "watch_main_loop.h" ////////////////////////////////////////////////////////////////////////////////////////// // This section sets up types and storage for our application state. diff --git a/watch-library/shared/watch/watch.h b/watch-library/shared/watch/watch.h index 7526d03..790f9a1 100644 --- a/watch-library/shared/watch/watch.h +++ b/watch-library/shared/watch/watch.h @@ -30,6 +30,10 @@ #include "driver_init.h" #include "pins.h" +#ifdef __EMSCRIPTEN__ +#include "watch_main_loop.h" +#endif // __EMSCRIPTEN__ + /** @mainpage Sensor Watch Documentation * @brief This documentation covers most of the functions you will use to interact with the Sensor Watch hardware. It is divided into the following sections: