RP2: Don't build sensor.c if it's disabled.

This commit is contained in:
iabdalkader 2021-06-17 15:56:37 +02:00
parent 21c8b20cfc
commit 21f4c0e0da

View File

@ -8,6 +8,7 @@
* *
* Sensor abstraction layer for nRF port. * Sensor abstraction layer for nRF port.
*/ */
#if MICROPY_PY_SENSOR
#include <stdio.h> #include <stdio.h>
#include <string.h> #include <string.h>
#include <stdint.h> #include <stdint.h>
@ -1075,3 +1076,4 @@ int sensor_snapshot(sensor_t *sensor, image_t *image, uint32_t flags)
return 0; return 0;
} }
#endif