From 3b871082c4a58fde31722a6665d5080cdf991171 Mon Sep 17 00:00:00 2001 From: MatthiasHertel80 Date: Mon, 4 Oct 2021 12:39:58 +0200 Subject: [PATCH] New Audio Frontend --- .../RTE/Machine_Learning/system_setup.cc | 2 +- Platform_IMXRT1050-EVKB/RTE/Machine_Learning/system_setup.cc | 2 +- Platform_MIMXRT1064-EVK/RTE/Machine_Learning/system_setup.cc | 2 +- micro_speech/src/microfrontend/lib/window.c | 1 - 4 files changed, 3 insertions(+), 4 deletions(-) diff --git a/Platform_FVP_Corstone_SSE-300_Ethos-U55/RTE/Machine_Learning/system_setup.cc b/Platform_FVP_Corstone_SSE-300_Ethos-U55/RTE/Machine_Learning/system_setup.cc index b4fe0b1..0ff68ac 100644 --- a/Platform_FVP_Corstone_SSE-300_Ethos-U55/RTE/Machine_Learning/system_setup.cc +++ b/Platform_FVP_Corstone_SSE-300_Ethos-U55/RTE/Machine_Learning/system_setup.cc @@ -22,7 +22,7 @@ extern "C" void stdio_init (void); namespace tflite { void debug_log_printf(const char* s) { - printf(s); + printf("%s", s); } // To add an equivalent function for your own platform, create your own diff --git a/Platform_IMXRT1050-EVKB/RTE/Machine_Learning/system_setup.cc b/Platform_IMXRT1050-EVKB/RTE/Machine_Learning/system_setup.cc index ac5b197..c28d65c 100644 --- a/Platform_IMXRT1050-EVKB/RTE/Machine_Learning/system_setup.cc +++ b/Platform_IMXRT1050-EVKB/RTE/Machine_Learning/system_setup.cc @@ -20,7 +20,7 @@ limitations under the License. namespace tflite { void debug_log_printf(const char* s) { - printf(s); + printf("%s",s); } // To add an equivalent function for your own platform, create your own diff --git a/Platform_MIMXRT1064-EVK/RTE/Machine_Learning/system_setup.cc b/Platform_MIMXRT1064-EVK/RTE/Machine_Learning/system_setup.cc index ac5b197..dbdda17 100644 --- a/Platform_MIMXRT1064-EVK/RTE/Machine_Learning/system_setup.cc +++ b/Platform_MIMXRT1064-EVK/RTE/Machine_Learning/system_setup.cc @@ -20,7 +20,7 @@ limitations under the License. namespace tflite { void debug_log_printf(const char* s) { - printf(s); + printf("%s", s); } // To add an equivalent function for your own platform, create your own diff --git a/micro_speech/src/microfrontend/lib/window.c b/micro_speech/src/microfrontend/lib/window.c index 7343637..072b99b 100644 --- a/micro_speech/src/microfrontend/lib/window.c +++ b/micro_speech/src/microfrontend/lib/window.c @@ -85,7 +85,6 @@ int WindowProcessSamples(struct WindowState* state, const int16_t* samples, int i; int16_t max_abs_output_value = 0; #ifndef __ARM_FEATURE_MVE - int i; for (i = 0; i < size; ++i) { int16_t new_value =