diff --git a/src/omv/modules/py_fir.c b/src/omv/modules/py_fir.c index 5973372b8..d7c34ab36 100644 --- a/src/omv/modules/py_fir.c +++ b/src/omv/modules/py_fir.c @@ -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