sensors/FIR: Disable FIR module build if no sensors are enabled.

This commit is contained in:
iabdalkader 2023-04-01 13:55:48 +02:00
parent bb8da452a3
commit 63132ea7b2

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