summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoey Castillo <joeycastillo@utexas.edu>2022-10-11 21:11:25 -0500
committerJoey Castillo <joeycastillo@utexas.edu>2022-10-11 21:11:25 -0500
commitbaf69d177079246f50e103efc1d720ab73ba8107 (patch)
tree20204b6b3babaaf6d3e5d70604f6ad21713e266e
parentbe1f3d3631d5403bb8391182258118098816d113 (diff)
downloadSensor-Watch-wryun-make-starter-proj-work-in-simulator.tar.gz
Sensor-Watch-wryun-make-starter-proj-work-in-simulator.tar.bz2
Sensor-Watch-wryun-make-starter-proj-work-in-simulator.zip
only include watch_main_loop for simulator buildswryun-make-starter-proj-work-in-simulator
-rw-r--r--apps/starter-project/app.c1
-rw-r--r--watch-library/shared/watch/watch.h4
2 files changed, 4 insertions, 1 deletions
diff --git a/apps/starter-project/app.c b/apps/starter-project/app.c
index 5dfde68d..2efa6e72 100644
--- a/apps/starter-project/app.c
+++ b/apps/starter-project/app.c
@@ -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.
diff --git a/watch-library/shared/watch/watch.h b/watch-library/shared/watch/watch.h
index 7526d03a..790f9a16 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: