2 Commits

View File

@@ -167,6 +167,8 @@ int main(void)
size_t successful_tests = 0; size_t successful_tests = 0;
size_t failed_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++) for (display_current_frame = 1; display_current_frame < LEN(executors)+1; display_current_frame++)
{ {
DISPLAY_CLEAR; DISPLAY_CLEAR;
@@ -214,15 +216,16 @@ int main(void)
else else
display_write_data_seq("Failures found!"); display_write_data_seq("Failures found!");
DISPLAY_SET_CURSOR(1, 2); DISPLAY_SET_CURSOR(1, 1);
display_write_data_seq("P:"); display_write_data_seq("PASSED /");
display_write_data_byte('0' + (successful_tests / 10) % 10);
display_write_data_byte('0' + (successful_tests) % 10);
DISPLAY_SET_CURSOR(1, 10); DISPLAY_SET_CURSOR(1, 8);
display_write_data_seq("F:"); display_write_data_byte('0' + (successful_tests / 10) % 10);
display_write_data_byte('0' + (failed_tests / 10) % 10); display_write_data_byte('0' + successful_tests % 10);
display_write_data_byte('0' + (failed_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(); display_to_direct();
@@ -236,6 +239,8 @@ int main(void)
display_load(display_current_frame); display_load(display_current_frame);
while (1) { while (1) {
HAL_Delay(15);
// go to next report // go to next report
if (UB || SWT1 || SWT5) { if (UB || SWT1 || SWT5) {
display_current_frame += 1; display_current_frame += 1;