mirror of
https://github.com/openmv/openmv.git
synced 2025-11-04 14:49:50 +08:00
RP2: Don't build sensor.c if it's disabled.
This commit is contained in:
parent
21c8b20cfc
commit
21f4c0e0da
@ -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
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user