From d192bac6c91dfcb12e2a3a81b71bf16816dd319f Mon Sep 17 00:00:00 2001 From: hasslesstech Date: Sun, 20 Apr 2025 12:02:54 +0300 Subject: [PATCH] [main] change summary page layout, add "Failure found!" title variant --- Core/Src/main.c | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-) diff --git a/Core/Src/main.c b/Core/Src/main.c index 0a9c6d5..2a1d8c0 100644 --- a/Core/Src/main.c +++ b/Core/Src/main.c @@ -167,6 +167,8 @@ int main(void) size_t successful_tests = 0; size_t failed_tests = 0; + const int test_amount = LEN(executors); + for (display_current_frame = 1; display_current_frame < LEN(executors)+1; display_current_frame++) { DISPLAY_CLEAR; @@ -214,15 +216,16 @@ int main(void) else display_write_data_seq("Failures found!"); - DISPLAY_SET_CURSOR(1, 2); - display_write_data_seq("P:"); - display_write_data_byte('0' + (successful_tests / 10) % 10); - display_write_data_byte('0' + (successful_tests) % 10); + DISPLAY_SET_CURSOR(1, 1); + display_write_data_seq("PASSED /"); - DISPLAY_SET_CURSOR(1, 10); - display_write_data_seq("F:"); - display_write_data_byte('0' + (failed_tests / 10) % 10); - display_write_data_byte('0' + (failed_tests) % 10); + DISPLAY_SET_CURSOR(1, 8); + display_write_data_byte('0' + (successful_tests / 10) % 10); + display_write_data_byte('0' + successful_tests % 10); + + DISPLAY_SET_CURSOR(1, 11); + display_write_data_byte('0' + (test_amount / 10) % 10); + display_write_data_byte('0' + test_amount % 10); display_to_direct();