Merge pull request #1321 from openmv/tf_build

py_tf: fix headers when module is disabled.
This commit is contained in:
Ibrahim Abd Elkader 2021-05-16 23:36:21 +02:00 committed by GitHub
commit 45ef7ac4ba
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -9,7 +9,9 @@
#include "py/objlist.h"
#include "py/objtuple.h"
#include "imlib_config.h"
#include "py_helper.h"
#ifdef IMLIB_ENABLE_TF
#include "py_assert.h"
#include "py_image.h"
#include "ff_wrapper.h"
@ -17,8 +19,6 @@
#include "libtf_person_detect_model_data.h"
#include "py_tf.h"
#ifdef IMLIB_ENABLE_TF
#define PY_TF_PUTCHAR_BUFFER_LEN 1023
void py_tf_alloc_putchar_buffer()