[main] change summary page layout, add "Failure found!" title variant

This commit is contained in:
ІО-23 Шмуляр Олег 2025-04-20 12:02:54 +03:00
parent 8cd4d9b60e
commit d192bac6c9

View File

@ -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();