[main] change summary page layout, add "Failure found!" title variant
This commit is contained in:
parent
8cd4d9b60e
commit
d192bac6c9
@ -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();
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user