only build sensor features if sensor is available

This commit is contained in:
joeycastillo
2024-10-12 10:55:10 -04:00
parent 378ba85b58
commit 4795818098
15 changed files with 65 additions and 33 deletions

View File

@@ -22,6 +22,8 @@
* SOFTWARE.
*/
#ifdef HAS_IR_SENSOR
#include <stdlib.h>
#include <string.h>
#include "light_sensor_face.h"
@@ -116,3 +118,5 @@ void light_sensor_face_resign(void *context) {
// handle any cleanup before your watch face goes off-screen.
}
#endif // HAS_IR_SENSOR