Merge pull request #1812 from openmv/fir_build

sensors/FIR: Disable FIR module build if no sensors are enabled.
This commit is contained in:
Ibrahim Abdelkader 2023-04-01 14:49:16 +02:00 committed by GitHub
commit 8b2ef9b27f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -10,8 +10,13 @@
*/
#include "py/runtime.h"
#include "py/objlist.h"
#include "omv_boardconfig.h"
#if OMV_ENABLE_FIR_MLX90621 || \
OMV_ENABLE_FIR_MLX90640 || \
OMV_ENABLE_FIR_MLX90641 || \
OMV_ENABLE_FIR_AMG8833 || \
OMV_ENABLE_FIR_LEPTON
#include "cambus.h"
#if (OMV_ENABLE_FIR_MLX90621 == 1)
#include "MLX90621_API.h"
@ -1278,3 +1283,4 @@ void py_fir_init0()
}
MP_REGISTER_MODULE(MP_QSTR_fir, fir_module);
#endif