From 99bfb66eb2af7c75ade54274590abd790972ea0b Mon Sep 17 00:00:00 2001 From: Michele Bini Date: Fri, 13 May 2022 00:03:10 +0200 Subject: Compilation fix for infinisim 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 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 inline void ObtainMotionSensorTemperature(X& x) { -- cgit v0.10.2