]> git.earman.xyz Git - sensor-watch.git/commitdiff
only include watch_main_loop.h in simulator builds
authorjoeycastillo <joeycastillo@utexas.edu>
Wed, 12 Oct 2022 03:06:02 +0000 (22:06 -0500)
committerjoeycastillo <joeycastillo@utexas.edu>
Wed, 12 Oct 2022 03:06:02 +0000 (22:06 -0500)
apps/starter-project/app.c
watch-library/shared/watch/watch.h

index 5dfde68dbf726eef7df01555602c56ea9d10c160..2efa6e722419fb3307259874b489b955a7d4628f 100644 (file)
@@ -1,7 +1,6 @@
 #include <stdio.h>
 #include <string.h>
 #include "watch.h"
-#include "watch_main_loop.h"
 
 //////////////////////////////////////////////////////////////////////////////////////////
 // This section sets up types and storage for our application state.
index 7526d03a1fc98b1720bb41ea1c4b27a15dbc54dd..790f9a163d1c70fc0f1df3bec6076df335bd3c00 100644 (file)
 #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: