Compare commits
2 Commits
if-rework-
...
if-rework-
| Author | SHA1 | Date | |
|---|---|---|---|
| bf83a6c0eb | |||
| 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();
|
||||
|
||||
@@ -236,6 +239,8 @@ int main(void)
|
||||
display_load(display_current_frame);
|
||||
|
||||
while (1) {
|
||||
HAL_Delay(15);
|
||||
|
||||
// go to next report
|
||||
if (UB || SWT1 || SWT5) {
|
||||
display_current_frame += 1;
|
||||
|
||||
Reference in New Issue
Block a user