MLECO-2684: Standardize LCD behaviour
* LCD display behavior for Run All now matches Run Next
* Remove repeated code
Signed-off-by: Richard Burton <richard.burton@arm.com>
Change-Id: I16706187fd4e7a59dd935783f5bfb8731435f381
diff --git a/source/use_case/img_class/src/UseCaseHandler.cc b/source/use_case/img_class/src/UseCaseHandler.cc
index effc06f..3812d81 100644
--- a/source/use_case/img_class/src/UseCaseHandler.cc
+++ b/source/use_case/img_class/src/UseCaseHandler.cc
@@ -52,8 +52,6 @@
constexpr uint32_t dataPsnTxtInfStartX = 150;
constexpr uint32_t dataPsnTxtInfStartY = 40;
- platform.data_psn->clear(COLOR_BLACK);
-
auto& model = ctx.Get<Model&>("model");
/* If the request has a valid size, set the image index. */
@@ -89,6 +87,8 @@
std::vector<ClassificationResult> results;
do {
+ platform.data_psn->clear(COLOR_BLACK);
+
/* Strings for presentation/logging. */
std::string str_inf{"Running inference... "};