From 21f4c0e0da647de3dcc4ca8af043bb7001331596 Mon Sep 17 00:00:00 2001 From: iabdalkader Date: Thu, 17 Jun 2021 15:56:37 +0200 Subject: [PATCH] RP2: Don't build sensor.c if it's disabled. --- src/omv/ports/rp2/sensor.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/omv/ports/rp2/sensor.c b/src/omv/ports/rp2/sensor.c index 7df45a639..db26f4460 100644 --- a/src/omv/ports/rp2/sensor.c +++ b/src/omv/ports/rp2/sensor.c @@ -8,6 +8,7 @@ * * Sensor abstraction layer for nRF port. */ +#if MICROPY_PY_SENSOR #include #include #include @@ -1075,3 +1076,4 @@ int sensor_snapshot(sensor_t *sensor, image_t *image, uint32_t flags) return 0; } +#endif