From 9b8d67a5389db4afeeb22c9c705252ba7f6f5915 Mon Sep 17 00:00:00 2001 From: Richard Burton Date: Fri, 10 Dec 2021 12:32:51 +0000 Subject: MLECO-2684: Standardize LCD behaviour * LCD display behavior for Run All now matches Run Next * Remove repeated code Signed-off-by: Richard Burton Change-Id: I16706187fd4e7a59dd935783f5bfb8731435f381 --- source/use_case/kws/src/UseCaseHandler.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'source/use_case/kws/src/UseCaseHandler.cc') diff --git a/source/use_case/kws/src/UseCaseHandler.cc b/source/use_case/kws/src/UseCaseHandler.cc index a951e55..3d95753 100644 --- a/source/use_case/kws/src/UseCaseHandler.cc +++ b/source/use_case/kws/src/UseCaseHandler.cc @@ -75,8 +75,6 @@ namespace app { (arm::app::DsCnnModel::ms_inputRowsIdx > arm::app::DsCnnModel::ms_inputColsIdx)? arm::app::DsCnnModel::ms_inputRowsIdx : arm::app::DsCnnModel::ms_inputColsIdx); - platform.data_psn->clear(COLOR_BLACK); - auto& model = ctx.Get("model"); /* If the request has a valid size, set the audio index. */ @@ -137,6 +135,8 @@ namespace app { const float secondsPerSample = 1.0/audio::DsCnnMFCC::ms_defaultSamplingFreq; do { + platform.data_psn->clear(COLOR_BLACK); + auto currentIndex = ctx.Get("clipIndex"); /* Creating a mfcc features sliding window for the data required for 1 inference. */ -- cgit v1.2.1