summaryrefslogtreecommitdiff
path: root/src/systemtask/SystemTask.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/systemtask/SystemTask.h')
-rw-r--r--src/systemtask/SystemTask.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/systemtask/SystemTask.h b/src/systemtask/SystemTask.h
index d04cd53..cb85253 100644
--- a/src/systemtask/SystemTask.h
+++ b/src/systemtask/SystemTask.h
@@ -96,7 +96,11 @@ namespace Pinetime {
// For accelerator-based games
template <typename X, typename Y, typename Z> inline void ObtainAccel(X& x, Y& y, Z& z) {
+#ifndef INFINISIM
motionSensor.ObtainAccel(x,y,z);
+#else
+ x = 0; y = 0; z = 0;
+#endif
}
template <typename X> inline void ObtainMotionSensorTemperature(X& x) {